From 152c256bcfb35c487a708da45c6004935b07a95c Mon Sep 17 00:00:00 2001 From: aawsome <37850842+aawsome@users.noreply.github.com> Date: Sun, 8 Sep 2024 21:28:13 +0200 Subject: [PATCH] prepare release 0.8.1 (#1231) Co-authored-by: github-actions --- CHANGELOG.md | 42 + Cargo.lock | 246 +-- Cargo.toml | 2 +- tests/completions-fixtures/bash.txt | 1976 +++++++++++++++++++-- tests/completions-fixtures/fish.txt | 140 +- tests/completions-fixtures/powershell.txt | 34 + tests/completions-fixtures/zsh.txt | 246 +-- 7 files changed, 2188 insertions(+), 498 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d722b9d..3518020eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,48 @@ All notable changes to this project will be documented in this file. +## [0.8.1] - 2024-09-08 + +### Bug Fixes + +- Allow to compile without tui feature + ([#1208](https://github.com/rustic-rs/rustic/issues/1208)) +- Use cargo --locked in CI pipeline + ([#1207](https://github.com/rustic-rs/rustic/issues/1207)) +- Return exitcode ([#1220](https://github.com/rustic-rs/rustic/issues/1220)) +- "Incorrect Password" error is now only shown if password is really incorrect. + ([rustic_core](https://github.com/rustic-rs/rustic_core/releases/tag/rustic_core-v0.3.1)) +- Group by now works as expected + ([rustic_core](https://github.com/rustic-rs/rustic_core/releases/tag/rustic_core-v0.3.1)) +- A bug in `keep-tags` and `filter-tags` has been fixed. + ([rustic_core](https://github.com/rustic-rs/rustic_core/releases/tag/rustic_core-v0.3.1)) +- Building OpenBSD platform target is now possible again + ([rustic_core](https://github.com/rustic-rs/rustic_core/releases/tag/rustic_core-v0.3.1)) + +### Documentation + +- Update config profile readme + ([#1221](https://github.com/rustic-rs/rustic/issues/1221)) + +### Features + +- Add autocompletion hints + ([#1225](https://github.com/rustic-rs/rustic/issues/1225)) +- Allow to modify filters + ([#1210](https://github.com/rustic-rs/rustic/issues/1210)) +- Allow to view text files + ([#1216](https://github.com/rustic-rs/rustic/issues/1216)) + +### Generated + +- Updated Completions fixtures + +### Miscellaneous Tasks + +- Bump quinn-proto from 0.11.6 to 0.11.8 + ([#1223](https://github.com/rustic-rs/rustic/issues/1223)) +- Dependency updates ([#1227](https://github.com/rustic-rs/rustic/issues/1227)) + ## [0.8.0] - 2024-08-21 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index fecdbe2e1..2ea29ad6a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -193,9 +193,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "10f00e1f6e58a40e807377c75c6a7f97bf9044fab57816f2414e6f5f4499d7b8" [[package]] name = "arc-swap" @@ -250,14 +250,14 @@ dependencies = [ [[package]] name = "async-executor" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7ebdfa2ebdab6b1760375fa7d6f382b9f486eac35fc994625a00e89280bdbb7" +checksum = "30ca9a001c1e8ba5149f91a74362376cc6bc5b919d92d988668657bd570bdcec" dependencies = [ "async-task", "concurrent-queue", - "fastrand 2.1.1", - "futures-lite 2.3.0", + "fastrand", + "futures-lite", "slab", ] @@ -269,61 +269,32 @@ checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c" dependencies = [ "async-channel 2.3.1", "async-executor", - "async-io 2.3.4", - "async-lock 3.4.0", + "async-io", + "async-lock", "blocking", - "futures-lite 2.3.0", + "futures-lite", "once_cell", ] -[[package]] -name = "async-io" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" -dependencies = [ - "async-lock 2.8.0", - "autocfg", - "cfg-if 1.0.0", - "concurrent-queue", - "futures-lite 1.13.0", - "log", - "parking", - "polling 2.8.0", - "rustix 0.37.27", - "slab", - "socket2 0.4.10", - "waker-fn", -] - [[package]] name = "async-io" version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "444b0228950ee6501b3568d3c93bf1176a1fdbc3b758dcd9475046d30f4dc7e8" dependencies = [ - "async-lock 3.4.0", + "async-lock", "cfg-if 1.0.0", "concurrent-queue", "futures-io", - "futures-lite 2.3.0", + "futures-lite", "parking", - "polling 3.7.3", - "rustix 0.38.36", + "polling", + "rustix", "slab", "tracing", "windows-sys 0.59.0", ] -[[package]] -name = "async-lock" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" -dependencies = [ - "event-listener 2.5.3", -] - [[package]] name = "async-lock" version = "3.4.0" @@ -337,19 +308,19 @@ dependencies = [ [[package]] name = "async-std" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62565bb4402e926b29953c785397c6dc0391b7b446e45008b0049eb43cec6f5d" +checksum = "c634475f29802fde2b8f0b505b1bd00dfe4df7d4a000f0b36f7671197d5c3615" dependencies = [ "async-channel 1.9.0", "async-global-executor", - "async-io 1.13.0", - "async-lock 2.8.0", + "async-io", + "async-lock", "crossbeam-utils", "futures-channel", "futures-core", "futures-io", - "futures-lite 1.13.0", + "futures-lite", "gloo-timers", "kv-log-macro", "log", @@ -436,7 +407,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d67782c3f868daa71d3533538e98a8e13713231969def7536e8039606fc46bf0" dependencies = [ - "fastrand 2.1.1", + "fastrand", "futures-core", "pin-project", "tokio", @@ -511,12 +482,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - [[package]] name = "bitflags" version = "2.6.0" @@ -550,7 +515,7 @@ dependencies = [ "async-channel 2.3.1", "async-task", "futures-io", - "futures-lite 2.3.0", + "futures-lite", "piper", ] @@ -669,9 +634,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.16" +version = "1.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9d013ecb737093c0e86b151a7b837993cf9ec6c502946cfb44bedc392421e0b" +checksum = "b62ac837cdb5cb22e10a256099b4fc502b1dfe560cb282963a974d7abd80e476" dependencies = [ "jobserver", "libc", @@ -989,7 +954,7 @@ version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" dependencies = [ - "bitflags 2.6.0", + "bitflags", "crossterm_winapi", "libc", "parking_lot", @@ -1002,11 +967,11 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" dependencies = [ - "bitflags 2.6.0", + "bitflags", "crossterm_winapi", "mio", "parking_lot", - "rustix 0.38.36", + "rustix", "signal-hook", "signal-hook-mio", "winapi", @@ -1496,15 +1461,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] - [[package]] name = "fastrand" version = "2.1.1" @@ -1632,28 +1588,13 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" -[[package]] -name = "futures-lite" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" -dependencies = [ - "fastrand 1.9.0", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - [[package]] name = "futures-lite" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ - "fastrand 2.1.1", + "fastrand", "futures-core", "futures-io", "parking", @@ -1723,7 +1664,7 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc3655aa6818d65bc620d6911f05aa7b6aeb596291e1e9f79e52df85583d1e30" dependencies = [ - "rustix 0.38.36", + "rustix", "windows-targets 0.52.6", ] @@ -1767,9 +1708,9 @@ dependencies = [ [[package]] name = "gloo-timers" -version = "0.2.6" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b995a66bb87bebce9a0f4a95aed01daca4872c050bfcb21653361c03bc35e5c" +checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" dependencies = [ "futures-channel", "futures-core", @@ -2038,7 +1979,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.10", + "socket2", "tokio", "tower-service", "tracing", @@ -2096,7 +2037,7 @@ dependencies = [ "http-body 1.0.1", "hyper 1.4.1", "pin-project-lite", - "socket2 0.5.7", + "socket2", "tokio", "tower", "tower-service", @@ -2237,22 +2178,11 @@ dependencies = [ "num-traits", ] -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "windows-sys 0.48.0", -] - [[package]] name = "ipnet" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" [[package]] name = "is_terminal_polyfill" @@ -2408,17 +2338,11 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.6.0", + "bitflags", "libc", "redox_syscall", ] -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -2562,7 +2486,7 @@ version = "0.12.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32cf62eb4dd975d2dde76432fb1075c49e3ee2331cf36f1f8fd4b66550d32b6f" dependencies = [ - "async-lock 3.4.0", + "async-lock", "async-trait", "crossbeam-channel", "crossbeam-epoch", @@ -2604,7 +2528,7 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ - "bitflags 2.6.0", + "bitflags", "cfg-if 1.0.0", "cfg_aliases", "libc", @@ -2869,7 +2793,7 @@ version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf38532d784978966f95d241226223823f351d5bb2a4bebcf6b20b9cb1e393e0" dependencies = [ - "bitflags 2.6.0", + "bitflags", "num-derive", "num-traits", "openssh-sftp-protocol-error", @@ -2947,9 +2871,9 @@ dependencies = [ [[package]] name = "parking" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" [[package]] name = "parking_lot" @@ -3063,7 +2987,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" dependencies = [ "atomic-waker", - "fastrand 2.1.1", + "fastrand", "futures-io", ] @@ -3111,22 +3035,6 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" -[[package]] -name = "polling" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" -dependencies = [ - "autocfg", - "bitflags 1.3.2", - "cfg-if 1.0.0", - "concurrent-queue", - "libc", - "log", - "pin-project-lite", - "windows-sys 0.48.0", -] - [[package]] name = "polling" version = "3.7.3" @@ -3137,7 +3045,7 @@ dependencies = [ "concurrent-queue", "hermit-abi 0.4.0", "pin-project-lite", - "rustix 0.38.36", + "rustix", "tracing", "windows-sys 0.59.0", ] @@ -3346,7 +3254,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls 0.23.12", - "socket2 0.5.7", + "socket2", "thiserror", "tokio", "tracing", @@ -3377,7 +3285,7 @@ checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b" dependencies = [ "libc", "once_cell", - "socket2 0.5.7", + "socket2", "tracing", "windows-sys 0.59.0", ] @@ -3427,7 +3335,7 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdef7f9be5c0122f890d58bdf4d964349ba6a6161f705907526d891efabba57d" dependencies = [ - "bitflags 2.6.0", + "bitflags", "cassowary", "compact_str", "crossterm 0.28.1", @@ -3448,7 +3356,7 @@ version = "11.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb9ee317cfe3fbd54b36a511efc1edd42e216903c9cd575e686dd68a2ba90d8d" dependencies = [ - "bitflags 2.6.0", + "bitflags", ] [[package]] @@ -3477,7 +3385,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" dependencies = [ - "bitflags 2.6.0", + "bitflags", ] [[package]] @@ -3625,7 +3533,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61797318be89b1a268a018a92a7657096d83f3ecb31418b9e9c16dcbb043b702" dependencies = [ "ahash", - "bitflags 2.6.0", + "bitflags", "instant", "num-traits", "once_cell", @@ -3756,7 +3664,7 @@ dependencies = [ [[package]] name = "rustic-rs" -version = "0.8.0-dev" +version = "0.8.1" dependencies = [ "abscissa_core", "aho-corasick", @@ -3920,30 +3828,16 @@ dependencies = [ "tempfile", ] -[[package]] -name = "rustix" -version = "0.37.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.3.8", - "windows-sys 0.48.0", -] - [[package]] name = "rustix" version = "0.38.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f55e80d50763938498dd5ebb18647174e0c76dc38c5505294bb224624f30f36" dependencies = [ - "bitflags 2.6.0", + "bitflags", "errno", "libc", - "linux-raw-sys 0.4.14", + "linux-raw-sys", "windows-sys 0.52.0", ] @@ -4077,11 +3971,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4133,7 +4027,7 @@ version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags 2.6.0", + "bitflags", "core-foundation", "core-foundation-sys", "libc", @@ -4156,7 +4050,7 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03ec815b5eab420ab893f63393878d89c90fdd94c0bcc44c07abb8ad95552fb7" dependencies = [ - "fastrand 2.1.1", + "fastrand", "tempfile", "windows-sys 0.52.0", ] @@ -4439,16 +4333,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "socket2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "socket2" version = "0.5.7" @@ -4560,7 +4444,7 @@ dependencies = [ "async-tls", "async-trait", "chrono", - "futures-lite 2.3.0", + "futures-lite", "lazy-regex", "log", "pin-project", @@ -4635,9 +4519,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if 1.0.0", - "fastrand 2.1.1", + "fastrand", "once_cell", - "rustix 0.38.36", + "rustix", "windows-sys 0.59.0", ] @@ -4656,7 +4540,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ - "rustix 0.38.36", + "rustix", "windows-sys 0.48.0", ] @@ -4775,7 +4659,7 @@ dependencies = [ "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2 0.5.7", + "socket2", "tokio-macros", "windows-sys 0.52.0", ] @@ -5200,12 +5084,6 @@ dependencies = [ "libc", ] -[[package]] -name = "waker-fn" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" - [[package]] name = "walkdir" version = "2.5.0" @@ -5622,8 +5500,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" dependencies = [ "libc", - "linux-raw-sys 0.4.14", - "rustix 0.38.36", + "linux-raw-sys", + "rustix", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c9987a2e3..b9b4de427 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustic-rs" -version = "0.8.0-dev" +version = "0.8.1" authors = ["the rustic-rs team"] categories = ["command-line-utilities"] documentation = "https://docs.rs/rustic-rs" diff --git a/tests/completions-fixtures/bash.txt b/tests/completions-fixtures/bash.txt index 329822bc1..27016865e 100644 --- a/tests/completions-fixtures/bash.txt +++ b/tests/completions-fixtures/bash.txt @@ -268,7 +268,7 @@ _rustic() { case "${cmd}" in rustic) - opts="-P -n -r -p -h -V --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help --version backup cat config completions check copy diff dump find forget init key list ls merge snapshots show-config self-update prune restore repair repoinfo tag webdav help" + opts="-P -n -r -p -h -V --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help --version backup cat config completions check copy diff dump find forget init key list ls merge snapshots show-config self-update prune restore repair repoinfo tag webdav help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -287,7 +287,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -295,11 +306,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -311,11 +335,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -323,7 +369,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -362,18 +411,32 @@ _rustic() { return 0 ;; rustic__backup) - opts="-g -f -x -P -n -r -p -h --stdin-filename --as-path --with-atime --ignore-devid --no-scan --json --quiet --init --group-by --parent --skip-identical-parent --force --ignore-ctime --ignore-inode --glob --iglob --glob-file --iglob-file --git-ignore --no-require-git --custom-ignorefile --exclude-if-present --one-file-system --exclude-larger-than --label --tag --description --description-from --time --delete-never --delete-after --host --command --hostname --username --with-created --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [SOURCE]..." + opts="-g -f -x -P -n -r -p -h --stdin-filename --as-path --with-atime --ignore-devid --no-scan --json --quiet --init --group-by --parent --skip-identical-parent --force --ignore-ctime --ignore-inode --glob --iglob --glob-file --iglob-file --git-ignore --no-require-git --custom-ignorefile --exclude-if-present --one-file-system --exclude-larger-than --label --tag --description --description-from --time --delete-never --delete-after --host --command --hostname --username --with-created --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [SOURCE]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --stdin-filename) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --as-path) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --group-by) @@ -429,7 +492,18 @@ _rustic() { return 0 ;; --description-from) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --time) @@ -517,7 +591,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -525,11 +610,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -541,11 +639,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -553,7 +673,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -592,7 +715,7 @@ _rustic() { return 0 ;; rustic__cat) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help tree-blob data-blob config index snapshot tree help" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help tree-blob data-blob config index snapshot tree help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -611,7 +734,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -619,11 +753,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -635,11 +782,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -647,7 +816,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -686,7 +858,7 @@ _rustic() { return 0 ;; rustic__cat__config) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -705,7 +877,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -713,11 +896,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -729,11 +925,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -741,7 +959,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -780,7 +1001,7 @@ _rustic() { return 0 ;; rustic__cat__data__blob) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -799,7 +1020,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -807,11 +1039,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -823,11 +1068,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -835,7 +1102,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -986,7 +1256,7 @@ _rustic() { return 0 ;; rustic__cat__index) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1005,7 +1275,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1013,11 +1294,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1029,11 +1323,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1041,7 +1357,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1080,7 +1399,7 @@ _rustic() { return 0 ;; rustic__cat__snapshot) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1099,7 +1418,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1107,11 +1437,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1123,11 +1466,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1135,7 +1500,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1174,7 +1542,7 @@ _rustic() { return 0 ;; rustic__cat__tree) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1193,7 +1561,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1201,11 +1580,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1217,11 +1609,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1229,7 +1643,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1268,7 +1685,7 @@ _rustic() { return 0 ;; rustic__cat__tree__blob) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1287,7 +1704,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1295,11 +1723,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1311,11 +1752,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1323,7 +1786,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1362,7 +1828,7 @@ _rustic() { return 0 ;; rustic__check) - opts="-P -n -r -p -h --trust-cache --read-data --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --trust-cache --read-data --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1381,7 +1847,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1389,11 +1866,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1405,11 +1895,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1417,7 +1929,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1456,7 +1971,7 @@ _rustic() { return 0 ;; rustic__completions) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help bash fish zsh powershell" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help bash fish zsh powershell" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1475,7 +1990,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1483,11 +2009,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1499,11 +2038,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1511,7 +2072,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1550,7 +2114,7 @@ _rustic() { return 0 ;; rustic__config) - opts="-P -n -r -p -h --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1617,7 +2181,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1625,11 +2200,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1641,11 +2229,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1653,7 +2263,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1692,7 +2305,7 @@ _rustic() { return 0 ;; rustic__copy) - opts="-P -n -r -p -h --init --hostname --username --with-created --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-P -n -r -p -h --init --hostname --username --with-created --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1719,7 +2332,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1727,11 +2351,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1743,11 +2380,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1755,7 +2414,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1794,7 +2456,7 @@ _rustic() { return 0 ;; rustic__diff) - opts="-x -P -n -r -p -h --metadata --no-content --glob --iglob --glob-file --iglob-file --git-ignore --no-require-git --custom-ignorefile --exclude-if-present --one-file-system --exclude-larger-than --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-x -P -n -r -p -h --metadata --no-content --glob --iglob --glob-file --iglob-file --git-ignore --no-require-git --custom-ignorefile --exclude-if-present --one-file-system --exclude-larger-than --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1841,7 +2503,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1849,11 +2522,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1865,11 +2551,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1877,7 +2585,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -1916,7 +2627,7 @@ _rustic() { return 0 ;; rustic__dump) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -1935,7 +2646,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -1943,11 +2665,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -1959,11 +2694,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -1971,7 +2728,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -2010,7 +2770,7 @@ _rustic() { return 0 ;; rustic__find) - opts="-g -P -n -r -p -h --glob --iglob --path --group-by --all --show-misses --numeric-uid-gid --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-g -P -n -r -p -h --glob --iglob --path --group-by --all --show-misses --numeric-uid-gid --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2049,7 +2809,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -2057,11 +2828,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -2073,11 +2857,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -2085,7 +2891,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -2124,7 +2933,7 @@ _rustic() { return 0 ;; rustic__forget) - opts="-g -l -H -d -w -m -y -P -n -r -p -h --json --quiet --group-by --prune --filter-host --filter-label --filter-paths --filter-tags --filter-fn --keep-tags --keep-id --keep-last --keep-hourly --keep-daily --keep-weekly --keep-monthly --keep-quarter-yearly --keep-half-yearly --keep-yearly --keep-within --keep-within-hourly --keep-within-daily --keep-within-weekly --keep-within-monthly --keep-within-quarter-yearly --keep-within-half-yearly --keep-within-yearly --keep-none --max-repack --max-unused --keep-pack --keep-delete --instant-delete --early-delete-index --fast-repack --repack-uncompressed --repack-all --repack-cacheable-only --no-resize --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --help [ID]..." + opts="-g -l -H -d -w -m -y -P -n -r -p -h --json --quiet --group-by --prune --filter-host --filter-label --filter-paths --filter-tags --filter-fn --keep-tags --keep-id --keep-last --keep-hourly --keep-daily --keep-weekly --keep-monthly --keep-quarter-yearly --keep-half-yearly --keep-yearly --keep-within --keep-within-hourly --keep-within-daily --keep-within-weekly --keep-within-monthly --keep-within-quarter-yearly --keep-within-half-yearly --keep-within-yearly --keep-none --max-repack --max-unused --keep-pack --keep-delete --instant-delete --early-delete-index --fast-repack --repack-uncompressed --repack-all --repack-cacheable-only --no-resize --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2287,7 +3096,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -2295,11 +3115,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -2311,11 +3144,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -2323,7 +3178,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -2832,7 +3690,7 @@ _rustic() { return 0 ;; rustic__init) - opts="-P -n -r -p -h --hostname --username --with-created --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --hostname --username --with-created --set-compression --set-version --set-append-only --set-treepack-size --set-treepack-size-limit --set-treepack-growfactor --set-datapack-size --set-datapack-growfactor --set-datapack-size-limit --set-min-packsize-tolerate-percent --set-max-packsize-tolerate-percent --set-extra-verify --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -2907,7 +3765,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -2915,11 +3784,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -2931,11 +3813,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -2943,7 +3847,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -2982,7 +3889,7 @@ _rustic() { return 0 ;; rustic__key) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help add help" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help add help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3001,7 +3908,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3009,11 +3927,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3025,11 +3956,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3037,7 +3990,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3076,7 +4032,7 @@ _rustic() { return 0 ;; rustic__key__add) - opts="-P -n -r -p -h --new-password --new-password-file --new-password-command --hostname --username --with-created --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --new-password --new-password-file --new-password-command --hostname --username --with-created --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3115,7 +4071,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3123,11 +4090,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3139,11 +4119,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3151,7 +4153,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3232,7 +4237,7 @@ _rustic() { return 0 ;; rustic__list) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help blobs index packs snapshots keys" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help blobs index packs snapshots keys" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3251,7 +4256,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3259,11 +4275,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3275,11 +4304,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3287,7 +4338,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3326,7 +4380,7 @@ _rustic() { return 0 ;; rustic__ls) - opts="-s -l -P -n -r -p -h --summary --long --numeric-uid-gid --glob --iglob --glob-file --iglob-file --recursive --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " + opts="-s -l -P -n -r -p -h --summary --long --numeric-uid-gid --glob --iglob --glob-file --iglob-file --recursive --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3361,7 +4415,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3369,11 +4434,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3385,11 +4463,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3397,7 +4497,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3436,7 +4539,7 @@ _rustic() { return 0 ;; rustic__merge) - opts="-P -n -r -p -h --json --delete --label --tag --description --description-from --time --delete-never --delete-after --host --command --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-P -n -r -p -h --json --delete --label --tag --description --description-from --time --delete-never --delete-after --host --command --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3455,7 +4558,18 @@ _rustic() { return 0 ;; --description-from) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --time) @@ -3487,7 +4601,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3495,11 +4620,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3511,11 +4649,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3523,7 +4683,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3562,7 +4725,7 @@ _rustic() { return 0 ;; rustic__prune) - opts="-P -n -r -p -h --max-repack --max-unused --keep-pack --keep-delete --instant-delete --early-delete-index --fast-repack --repack-uncompressed --repack-all --repack-cacheable-only --no-resize --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --max-repack --max-unused --keep-pack --keep-delete --instant-delete --early-delete-index --fast-repack --repack-uncompressed --repack-all --repack-cacheable-only --no-resize --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3601,7 +4764,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3609,11 +4783,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3625,11 +4812,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3637,7 +4846,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3676,7 +4888,7 @@ _rustic() { return 0 ;; rustic__repair) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help index snapshots help" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help index snapshots help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3695,7 +4907,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3703,11 +4926,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3719,11 +4955,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3731,7 +4989,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3826,7 +5087,7 @@ _rustic() { return 0 ;; rustic__repair__index) - opts="-P -n -r -p -h --read-all --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --read-all --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3845,7 +5106,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3853,11 +5125,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3869,11 +5154,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3881,7 +5188,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -3920,7 +5230,7 @@ _rustic() { return 0 ;; rustic__repair__snapshots) - opts="-P -n -r -p -h --delete --suffix --tag --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-P -n -r -p -h --delete --suffix --tag --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -3947,7 +5257,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -3955,11 +5276,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -3971,11 +5305,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -3983,7 +5339,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4022,7 +5381,7 @@ _rustic() { return 0 ;; rustic__repoinfo) - opts="-P -n -r -p -h --only-files --only-index --json --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --only-files --only-index --json --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4041,7 +5400,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4049,11 +5419,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4065,11 +5448,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4077,7 +5482,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4116,7 +5524,7 @@ _rustic() { return 0 ;; rustic__restore) - opts="-P -n -r -p -h --delete --numeric-id --no-ownership --verify-existing --glob --iglob --glob-file --iglob-file --recursive --filter-host --filter-label --filter-paths --filter-tags --filter-fn --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --help " + opts="-P -n -r -p -h --delete --numeric-id --no-ownership --verify-existing --glob --iglob --glob-file --iglob-file --recursive --filter-host --filter-label --filter-paths --filter-tags --filter-fn --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --help " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4171,7 +5579,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4179,11 +5598,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4195,11 +5627,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4207,7 +5661,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4226,7 +5683,7 @@ _rustic() { return 0 ;; rustic__self__update) - opts="-P -n -r -p -h --force --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --force --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4245,7 +5702,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4253,11 +5721,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4269,11 +5750,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4281,7 +5784,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4320,7 +5826,7 @@ _rustic() { return 0 ;; rustic__show__config) - opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" + opts="-P -n -r -p -h --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4339,7 +5845,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4347,11 +5864,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4363,11 +5893,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4375,7 +5927,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4414,7 +5969,7 @@ _rustic() { return 0 ;; rustic__snapshots) - opts="-g -i -P -n -r -p -h --group-by --long --json --all --interactive --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-g -i -P -n -r -p -h --group-by --long --json --all --interactive --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4441,7 +5996,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4449,11 +6015,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4465,11 +6044,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4477,7 +6078,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4516,7 +6120,7 @@ _rustic() { return 0 ;; rustic__tag) - opts="-P -n -r -p -h --add --remove --set --remove-delete --set-delete-never --set-delete-after --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." + opts="-P -n -r -p -h --add --remove --set --remove-delete --set-delete-never --set-delete-after --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [ID]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4551,7 +6155,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4559,11 +6174,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4575,11 +6203,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4587,7 +6237,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) @@ -4626,7 +6279,7 @@ _rustic() { return 0 ;; rustic__webdav) - opts="-P -n -r -p -h --address --path-template --time-template --symlinks --file-access --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [SNAPSHOT[:PATH]]" + opts="-P -n -r -p -h --address --path-template --time-template --symlinks --file-access --use-profile --dry-run --check-index --log-level --log-file --no-progress --progress-interval --repo --repository --repo-hot --password --password-file --password-command --no-cache --cache-dir --warm-up --warm-up-command --warm-up-wait --filter-host --filter-label --filter-paths --filter-tags --filter-fn --help [SNAPSHOT[:PATH]]" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -4661,7 +6314,18 @@ _rustic() { return 0 ;; --log-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --progress-interval) @@ -4669,11 +6333,24 @@ _rustic() { return 0 ;; --repository) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi + return 0 + ;; + --repo) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; -r) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --repo-hot) @@ -4685,11 +6362,33 @@ _rustic() { return 0 ;; --password-file) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; -p) + local oldifs + if [ -n "${IFS+x}" ]; then + oldifs="$IFS" + fi + IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) + if [ -n "${oldifs+x}" ]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi return 0 ;; --password-command) @@ -4697,7 +6396,10 @@ _rustic() { return 0 ;; --cache-dir) - COMPREPLY=($(compgen -f "${cur}")) + COMPREPLY=() + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o plusdirs + fi return 0 ;; --warm-up-command) diff --git a/tests/completions-fixtures/fish.txt b/tests/completions-fixtures/fish.txt index 8265ffa74..1e9bde25a 100644 --- a/tests/completions-fixtures/fish.txt +++ b/tests/completions-fixtures/fish.txt @@ -28,12 +28,12 @@ complete -c rustic -n "__fish_rustic_needs_command" -s P -l use-profile -d 'Conf complete -c rustic -n "__fish_rustic_needs_command" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_needs_command" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_needs_command" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_needs_command" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_needs_command" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_needs_command" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_needs_command" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_needs_command" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_needs_command" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_needs_command" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_needs_command" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_needs_command" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_needs_command" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_needs_command" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -73,8 +73,8 @@ complete -c rustic -n "__fish_rustic_needs_command" -f -a "repoinfo" -d 'Show ge complete -c rustic -n "__fish_rustic_needs_command" -f -a "tag" -d 'Change tags of snapshots' complete -c rustic -n "__fish_rustic_needs_command" -f -a "webdav" -d 'Start a webdav server which allows to access the repository' complete -c rustic -n "__fish_rustic_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' -complete -c rustic -n "__fish_rustic_using_subcommand backup" -l stdin-filename -d 'Set filename to be used when backing up from stdin' -r -complete -c rustic -n "__fish_rustic_using_subcommand backup" -l as-path -d 'Manually set backup path in snapshot' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand backup" -l stdin-filename -d 'Set filename to be used when backing up from stdin' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand backup" -l as-path -d 'Manually set backup path in snapshot' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand backup" -s g -l group-by -d 'Group snapshots by any combination of host,label,paths,tags to find a suitable parent (default: host,label,paths)' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l parent -d 'Snapshot to use as parent' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l glob -d 'Glob pattern to exclude/include (can be specified multiple times)' -r @@ -110,12 +110,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand backup" -s P -l use-profil complete -c rustic -n "__fish_rustic_using_subcommand backup" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand backup" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand backup" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand backup" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand backup" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand backup" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand backup" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand backup" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand backup" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand backup" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -148,12 +148,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_s complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and not __fish_seen_subcommand_from tree-blob data-blob config index snapshot tree help" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -178,12 +178,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree-blob" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -201,12 +201,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from data-blob" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -224,12 +224,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from config" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -247,12 +247,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from index" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -270,12 +270,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from snapshot" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -293,12 +293,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand cat; and __fish_seen_subcommand_from tree" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -335,12 +335,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand config" -s P -l use-profil complete -c rustic -n "__fish_rustic_using_subcommand config" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand config" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand config" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand config" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand config" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand config" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand config" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand config" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand config" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand config" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand config" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand config" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -358,12 +358,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand completions" -s P -l use-p complete -c rustic -n "__fish_rustic_using_subcommand completions" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand completions" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand completions" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand completions" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand completions" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand completions" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand completions" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand completions" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand completions" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand completions" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand completions" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand completions" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand completions" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand completions" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -381,12 +381,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand check" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand check" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand check" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand check" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand check" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand check" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand check" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand check" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand check" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand check" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand check" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand check" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand check" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand check" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand check" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -408,12 +408,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand copy" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand copy" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand copy" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand copy" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand copy" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand copy" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand copy" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand copy" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand copy" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand copy" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand copy" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand copy" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand copy" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand copy" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand copy" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -440,12 +440,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand diff" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand diff" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand diff" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand diff" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand diff" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand diff" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand diff" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand diff" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand diff" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand diff" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand diff" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand diff" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand diff" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand diff" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand diff" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -468,12 +468,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand dump" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand dump" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand dump" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand dump" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand dump" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand dump" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand dump" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand dump" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand dump" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand dump" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand dump" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand dump" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand dump" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand dump" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand dump" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -495,12 +495,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand find" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand find" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand find" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand find" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand find" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand find" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand find" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand find" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand find" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand find" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand find" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand find" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand find" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand find" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand find" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -550,12 +550,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand forget" -s P -l use-profil complete -c rustic -n "__fish_rustic_using_subcommand forget" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand forget" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand forget" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand forget" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand forget" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand forget" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand forget" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand forget" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand forget" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand forget" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand forget" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand forget" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand forget" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand forget" -l json -d 'Show infos in json format' @@ -592,12 +592,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand init" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand init" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand init" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand init" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand init" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand init" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand init" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand init" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand init" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand init" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand init" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand init" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand init" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand init" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand init" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -616,12 +616,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_s complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and not __fish_seen_subcommand_from add help" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -646,12 +646,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subco complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand key; and __fish_seen_subcommand_from add" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -672,12 +672,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand list" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand list" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand list" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand list" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand list" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand list" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand list" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand list" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand list" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand list" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand list" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand list" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand list" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand list" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand list" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -699,12 +699,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand ls" -s P -l use-profile -d complete -c rustic -n "__fish_rustic_using_subcommand ls" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand ls" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand ls" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand ls" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand ls" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand ls" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand ls" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand ls" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand ls" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand ls" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand ls" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand ls" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand ls" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand ls" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -734,12 +734,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand merge" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand merge" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand merge" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand merge" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand merge" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand merge" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand merge" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand merge" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand merge" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand merge" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand merge" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand merge" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand merge" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand merge" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand merge" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -761,12 +761,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -s P -l use-pro complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand snapshots" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -788,12 +788,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand show-config" -s P -l use-p complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand show-config" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand show-config" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand show-config" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand show-config" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -811,12 +811,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand self-update" -s P -l use-p complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand self-update" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand self-update" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand self-update" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand self-update" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -840,12 +840,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand prune" -s P -l use-profile complete -c rustic -n "__fish_rustic_using_subcommand prune" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand prune" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand prune" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand prune" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand prune" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand prune" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand prune" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand prune" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand prune" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand prune" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand prune" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand prune" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand prune" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand prune" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -878,12 +878,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand restore" -s P -l use-profi complete -c rustic -n "__fish_rustic_using_subcommand restore" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand restore" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand restore" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand restore" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand restore" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand restore" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand restore" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand restore" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand restore" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand restore" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand restore" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand restore" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand restore" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand restore" -l delete -d 'Remove all files/dirs in destination which are not contained in snapshot' @@ -901,12 +901,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_see complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and not __fish_seen_subcommand_from index snapshots help" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -927,12 +927,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_su complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from index" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -953,12 +953,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_su complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand repair; and __fish_seen_subcommand_from snapshots" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -980,12 +980,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -s P -l use-prof complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand repoinfo" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -1010,12 +1010,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand tag" -s P -l use-profile - complete -c rustic -n "__fish_rustic_using_subcommand tag" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand tag" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand tag" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand tag" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand tag" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand tag" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand tag" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand tag" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand tag" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand tag" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand tag" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand tag" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand tag" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand tag" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r @@ -1039,12 +1039,12 @@ complete -c rustic -n "__fish_rustic_using_subcommand webdav" -s P -l use-profil complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l log-level -d 'Use this log level [default: info]' -r complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l log-file -d 'Write log messages to the given file instead of printing them' -r -F complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l progress-interval -d 'Interval to update progress bars' -r -complete -c rustic -n "__fish_rustic_using_subcommand webdav" -s r -l repository -d 'Repository to use' -r +complete -c rustic -n "__fish_rustic_using_subcommand webdav" -s r -l repository -l repo -d 'Repository to use' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l repo-hot -d 'Repository to use as hot storage' -r complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l password -d 'Password of the repository' -r complete -c rustic -n "__fish_rustic_using_subcommand webdav" -s p -l password-file -d 'File to read the password from' -r -F complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l password-command -d 'Command to read the password from. Password is read from stdout' -r -complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -F +complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l cache-dir -d 'Use this dir as cache dir instead of the standard cache dir' -r -f -a "(__fish_complete_directories)" complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l warm-up-command -d 'Warm up needed data pack files by running the command with %id replaced by pack id' -r complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l warm-up-wait -d 'Duration (e.g. 10m) to wait after warm up' -r complete -c rustic -n "__fish_rustic_using_subcommand webdav" -l filter-host -d 'Hostname to filter (can be specified multiple times)' -r diff --git a/tests/completions-fixtures/powershell.txt b/tests/completions-fixtures/powershell.txt index 19232b79f..44aaa6896 100644 --- a/tests/completions-fixtures/powershell.txt +++ b/tests/completions-fixtures/powershell.txt @@ -28,6 +28,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -120,6 +121,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -168,6 +170,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -206,6 +209,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -237,6 +241,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -268,6 +273,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -299,6 +305,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -330,6 +337,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -361,6 +369,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -435,6 +444,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -466,6 +476,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -497,6 +508,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -532,6 +544,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -572,6 +585,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -609,6 +623,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -645,6 +660,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -715,6 +731,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -765,6 +782,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -797,6 +815,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -835,6 +854,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -878,6 +898,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -913,6 +934,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -958,6 +980,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -994,6 +1017,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1030,6 +1054,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1061,6 +1086,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1098,6 +1124,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1144,6 +1171,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1175,6 +1203,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1209,6 +1238,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1243,6 +1273,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1290,6 +1321,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1328,6 +1360,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') @@ -1365,6 +1398,7 @@ Register-ArgumentCompleter -Native -CommandName 'rustic' -ScriptBlock { [CompletionResult]::new('--progress-interval', '--progress-interval', [CompletionResultType]::ParameterName, 'Interval to update progress bars') [CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Repository to use') + [CompletionResult]::new('--repo', '--repo', [CompletionResultType]::ParameterName, 'Repository to use') [CompletionResult]::new('--repo-hot', '--repo-hot', [CompletionResultType]::ParameterName, 'Repository to use as hot storage') [CompletionResult]::new('--password', '--password', [CompletionResultType]::ParameterName, 'Password of the repository') [CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'File to read the password from') diff --git a/tests/completions-fixtures/zsh.txt b/tests/completions-fixtures/zsh.txt index 5b13011fe..60aaa0e41 100644 --- a/tests/completions-fixtures/zsh.txt +++ b/tests/completions-fixtures/zsh.txt @@ -20,14 +20,15 @@ _rustic() { '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -56,8 +57,8 @@ _rustic() { case $line[1] in (backup) _arguments "${_arguments_options[@]}" : \ -'--stdin-filename=[Set filename to be used when backing up from stdin]:FILENAME: ' \ -'--as-path=[Manually set backup path in snapshot]:PATH:_files' \ +'--stdin-filename=[Set filename to be used when backing up from stdin]:FILENAME:_files' \ +'--as-path=[Manually set backup path in snapshot]:PATH:_files -/' \ '-g+[Group snapshots by any combination of host,label,paths,tags to find a suitable parent (default\: host,label,paths)]:CRITERION: ' \ '--group-by=[Group snapshots by any combination of host,label,paths,tags to find a suitable parent (default\: host,label,paths)]:CRITERION: ' \ '(-f --force)--parent=[Snapshot to use as parent]:SNAPSHOT: ' \ @@ -95,14 +96,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -135,7 +137,7 @@ _arguments "${_arguments_options[@]}" : \ '--warm-up[Warm up needed data pack files by only requesting them without processing]' \ '-h[Print help (see more with '\''--help'\'')]' \ '--help[Print help (see more with '\''--help'\'')]' \ -'*::cli_sources -- Backup source (can be specified multiple times), use - for stdin. If no source is given, uses all sources defined in the config file:' \ +'*::cli_sources -- Backup source (can be specified multiple times), use - for stdin. If no source is given, uses all sources defined in the config file:_files' \ && ret=0 ;; (cat) @@ -145,14 +147,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -185,14 +188,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -218,14 +222,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -251,14 +256,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -283,14 +289,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -316,14 +323,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -349,14 +357,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -442,14 +451,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -474,14 +484,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -507,14 +518,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -543,14 +555,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -585,14 +598,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -615,7 +629,7 @@ _arguments "${_arguments_options[@]}" : \ '-h[Print help (see more with '\''--help'\'')]' \ '--help[Print help (see more with '\''--help'\'')]' \ ':snap1 -- Reference snapshot/path:' \ -':snap2 -- New snapshot/path or local path \[default for PATH2\: PATH1\]:' \ +':snap2 -- New snapshot/path or local path \[default for PATH2\: PATH1\]:_files' \ && ret=0 ;; (dump) @@ -625,14 +639,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -663,14 +678,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -735,14 +751,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '--json[Show infos in json format]' \ @@ -787,14 +804,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -820,14 +838,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -865,14 +884,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -926,14 +946,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -963,14 +984,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1010,14 +1032,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1048,14 +1071,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1086,14 +1110,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1118,14 +1143,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1156,14 +1182,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1203,14 +1230,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '--delete[Remove all files/dirs in destination which are not contained in snapshot]' \ @@ -1237,14 +1265,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1277,14 +1306,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1312,14 +1342,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1378,14 +1409,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1417,14 +1449,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \ @@ -1456,14 +1489,15 @@ _arguments "${_arguments_options[@]}" : \ '--log-level=[Use this log level \[default\: info\]]:LOG_LEVEL: ' \ '--log-file=[Write log messages to the given file instead of printing them]:LOGFILE:_files' \ '(--no-progress)--progress-interval=[Interval to update progress bars]:DURATION: ' \ -'-r+[Repository to use]:REPOSITORY: ' \ -'--repository=[Repository to use]:REPOSITORY: ' \ +'-r+[Repository to use]:REPOSITORY:_files -/' \ +'--repository=[Repository to use]:REPOSITORY:_files -/' \ +'--repo=[Repository to use]:REPOSITORY:_files -/' \ '--repo-hot=[Repository to use as hot storage]:REPO_HOT: ' \ '--password=[Password of the repository]:PASSWORD: ' \ '(--password)-p+[File to read the password from]:PASSWORD_FILE:_files' \ '(--password)--password-file=[File to read the password from]:PASSWORD_FILE:_files' \ '(--password -p --password-file)--password-command=[Command to read the password from. Password is read from stdout]:PASSWORD_COMMAND: ' \ -'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files' \ +'(--no-cache)--cache-dir=[Use this dir as cache dir instead of the standard cache dir]:CACHE_DIR:_files -/' \ '(--warm-up)--warm-up-command=[Warm up needed data pack files by running the command with %id replaced by pack id]:WARM_UP_COMMAND: ' \ '--warm-up-wait=[Duration (e.g. 10m) to wait after warm up]:DURATION: ' \ '*--filter-host=[Hostname to filter (can be specified multiple times)]:HOSTNAME: ' \