Update manpages and auto-completion

This commit is contained in:
Alexander Neumann
2024-09-05 21:25:21 +02:00
parent d8870a2f73
commit a98370cc9e
38 changed files with 680 additions and 3 deletions

View File

@@ -516,6 +516,8 @@ _restic_backup()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -592,6 +594,8 @@ _restic_cache()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -660,6 +664,8 @@ _restic_cat()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -667,6 +673,15 @@ _restic_cat()
must_have_one_flag=()
must_have_one_noun=()
must_have_one_noun+=("blob")
must_have_one_noun+=("config")
must_have_one_noun+=("index")
must_have_one_noun+=("key")
must_have_one_noun+=("lock")
must_have_one_noun+=("masterkey")
must_have_one_noun+=("pack")
must_have_one_noun+=("snapshot")
must_have_one_noun+=("tree")
noun_aliases=()
}
@@ -736,6 +751,8 @@ _restic_check()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -840,6 +857,8 @@ _restic_copy()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -910,6 +929,8 @@ _restic_diff()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1004,6 +1025,78 @@ _restic_dump()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
flags+=("-v")
must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}
_restic_features()
{
last_command="restic_features"
command_aliases=()
commands=()
flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()
flags+=("--help")
flags+=("-h")
local_nonpersistent_flags+=("--help")
local_nonpersistent_flags+=("-h")
flags+=("--cacert=")
two_word_flags+=("--cacert")
flags+=("--cache-dir=")
two_word_flags+=("--cache-dir")
flags+=("--cleanup-cache")
flags+=("--compression=")
two_word_flags+=("--compression")
flags+=("--http-user-agent=")
two_word_flags+=("--http-user-agent")
flags+=("--insecure-no-password")
flags+=("--insecure-tls")
flags+=("--json")
flags+=("--key-hint=")
two_word_flags+=("--key-hint")
flags+=("--limit-download=")
two_word_flags+=("--limit-download")
flags+=("--limit-upload=")
two_word_flags+=("--limit-upload")
flags+=("--no-cache")
flags+=("--no-extra-verify")
flags+=("--no-lock")
flags+=("--option=")
two_word_flags+=("--option")
two_word_flags+=("-o")
flags+=("--pack-size=")
two_word_flags+=("--pack-size")
flags+=("--password-command=")
two_word_flags+=("--password-command")
flags+=("--password-file=")
two_word_flags+=("--password-file")
two_word_flags+=("-p")
flags+=("--quiet")
flags+=("-q")
flags+=("--repo=")
two_word_flags+=("--repo")
two_word_flags+=("-r")
flags+=("--repository-file=")
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1122,6 +1215,8 @@ _restic_find()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1298,6 +1393,8 @@ _restic_forget()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1386,6 +1483,8 @@ _restic_generate()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1450,6 +1549,8 @@ _restic_help()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1547,6 +1648,8 @@ _restic_init()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1629,6 +1732,8 @@ _restic_key_add()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1693,6 +1798,8 @@ _restic_key_help()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1762,6 +1869,8 @@ _restic_key_list()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1844,6 +1953,8 @@ _restic_key_passwd()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1912,6 +2023,8 @@ _restic_key_remove()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -1985,6 +2098,8 @@ _restic_key()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2053,6 +2168,8 @@ _restic_list()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2145,6 +2262,8 @@ _restic_ls()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2217,6 +2336,8 @@ _restic_migrate()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2313,6 +2434,78 @@ _restic_mount()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
flags+=("-v")
must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}
_restic_options()
{
last_command="restic_options"
command_aliases=()
commands=()
flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()
flags+=("--help")
flags+=("-h")
local_nonpersistent_flags+=("--help")
local_nonpersistent_flags+=("-h")
flags+=("--cacert=")
two_word_flags+=("--cacert")
flags+=("--cache-dir=")
two_word_flags+=("--cache-dir")
flags+=("--cleanup-cache")
flags+=("--compression=")
two_word_flags+=("--compression")
flags+=("--http-user-agent=")
two_word_flags+=("--http-user-agent")
flags+=("--insecure-no-password")
flags+=("--insecure-tls")
flags+=("--json")
flags+=("--key-hint=")
two_word_flags+=("--key-hint")
flags+=("--limit-download=")
two_word_flags+=("--limit-download")
flags+=("--limit-upload=")
two_word_flags+=("--limit-upload")
flags+=("--no-cache")
flags+=("--no-extra-verify")
flags+=("--no-lock")
flags+=("--option=")
two_word_flags+=("--option")
two_word_flags+=("-o")
flags+=("--pack-size=")
two_word_flags+=("--pack-size")
flags+=("--password-command=")
two_word_flags+=("--password-command")
flags+=("--password-file=")
two_word_flags+=("--password-file")
two_word_flags+=("-p")
flags+=("--quiet")
flags+=("-q")
flags+=("--repo=")
two_word_flags+=("--repo")
two_word_flags+=("-r")
flags+=("--repository-file=")
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2403,6 +2596,8 @@ _restic_prune()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2471,6 +2666,8 @@ _restic_recover()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2535,6 +2732,8 @@ _restic_repair_help()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2606,6 +2805,8 @@ _restic_repair_index()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2674,6 +2875,8 @@ _restic_repair_packs()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2762,6 +2965,8 @@ _restic_repair_snapshots()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2834,6 +3039,8 @@ _restic_repair()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -2970,6 +3177,8 @@ _restic_restore()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3084,6 +3293,8 @@ _restic_rewrite()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3156,6 +3367,8 @@ _restic_self-update()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3252,6 +3465,8 @@ _restic_snapshots()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3288,6 +3503,8 @@ _restic_stats()
local_nonpersistent_flags+=("-H")
flags+=("--mode=")
two_word_flags+=("--mode")
flags_with_completion+=("--mode")
flags_completion+=("__restic_handle_go_custom_completion")
local_nonpersistent_flags+=("--mode")
local_nonpersistent_flags+=("--mode=")
flags+=("--path=")
@@ -3338,6 +3555,8 @@ _restic_stats()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3432,6 +3651,8 @@ _restic_tag()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3502,6 +3723,8 @@ _restic_unlock()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3570,6 +3793,8 @@ _restic_version()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")
@@ -3594,6 +3819,7 @@ _restic_root_command()
commands+=("copy")
commands+=("diff")
commands+=("dump")
commands+=("features")
commands+=("find")
commands+=("forget")
commands+=("generate")
@@ -3604,6 +3830,7 @@ _restic_root_command()
commands+=("ls")
commands+=("migrate")
commands+=("mount")
commands+=("options")
commands+=("prune")
commands+=("recover")
commands+=("repair")
@@ -3666,6 +3893,8 @@ _restic_root_command()
two_word_flags+=("--repository-file")
flags+=("--retry-lock=")
two_word_flags+=("--retry-lock")
flags+=("--stuck-request-timeout=")
two_word_flags+=("--stuck-request-timeout")
flags+=("--tls-client-cert=")
two_word_flags+=("--tls-client-cert")
flags+=("--verbose")