Also add completion for `restic key list|remove`

This commit is contained in:
doak 2024-02-12 01:10:19 +01:00
parent 060d8ee38c
commit 66e7b0f34a
1 changed files with 34 additions and 0 deletions

View File

@ -1514,7 +1514,9 @@ _restic_key()
commands=()
commands+=("add")
commands+=("list")
commands+=("passwd")
commands+=("remove")
flags=()
two_word_flags=()
@ -1603,6 +1605,22 @@ _restic_key_add()
noun_aliases=()
}
_restic_key_list()
{
last_command="restic_key_list"
command_aliases=()
commands=()
flags_with_completion=()
flags_completion=()
must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}
_restic_key_passwd()
{
last_command="restic_key_passwd"
@ -1621,6 +1639,22 @@ _restic_key_passwd()
noun_aliases=()
}
_restic_key_remove()
{
last_command="restic_key_remove"
command_aliases=()
commands=()
flags_with_completion=()
flags_completion=()
must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}
_restic_list()
{
last_command="restic_list"