mirror of https://github.com/restic/restic.git
Also add completion for `restic key list|remove`
This commit is contained in:
parent
060d8ee38c
commit
66e7b0f34a
|
@ -1514,7 +1514,9 @@ _restic_key()
|
||||||
|
|
||||||
commands=()
|
commands=()
|
||||||
commands+=("add")
|
commands+=("add")
|
||||||
|
commands+=("list")
|
||||||
commands+=("passwd")
|
commands+=("passwd")
|
||||||
|
commands+=("remove")
|
||||||
|
|
||||||
flags=()
|
flags=()
|
||||||
two_word_flags=()
|
two_word_flags=()
|
||||||
|
@ -1603,6 +1605,22 @@ _restic_key_add()
|
||||||
noun_aliases=()
|
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()
|
_restic_key_passwd()
|
||||||
{
|
{
|
||||||
last_command="restic_key_passwd"
|
last_command="restic_key_passwd"
|
||||||
|
@ -1621,6 +1639,22 @@ _restic_key_passwd()
|
||||||
noun_aliases=()
|
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()
|
_restic_list()
|
||||||
{
|
{
|
||||||
last_command="restic_list"
|
last_command="restic_list"
|
||||||
|
|
Loading…
Reference in New Issue