|
@@ -16,6 +16,7 @@ complete -c borg -f -n __fish_is_first_token -a 'list' -d 'List archive or repos
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'diff' -d 'Find differences between archives'
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'delete' -d 'Delete a repository or archive'
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'prune' -d 'Prune repository archives'
|
|
|
+complete -c borg -f -n __fish_is_first_token -a 'compact' -d 'Free repository space'
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'info' -d 'Show archive details'
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'mount' -d 'Mount archive or a repository'
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'umount' -d 'Un-mount the mounted archive'
|
|
@@ -50,6 +51,17 @@ end
|
|
|
complete -c borg -f -n __fish_is_first_token -a 'benchmark' -d 'Benchmark borg operations'
|
|
|
complete -c borg -f -n __fish_borg_seen_benchmark -a 'crud' -d 'Benchmark borg CRUD operations'
|
|
|
|
|
|
+function __fish_borg_seen_help
|
|
|
+ if __fish_seen_subcommand_from help
|
|
|
+ and not __fish_seen_subcommand_from patterns placeholders compression
|
|
|
+ return 0
|
|
|
+ end
|
|
|
+ return 1
|
|
|
+end
|
|
|
+complete -c borg -f -n __fish_is_first_token -a 'help' -d 'Miscellaneous Help'
|
|
|
+complete -c borg -f -n __fish_borg_seen_help -a 'patterns' -d 'Help for patterns'
|
|
|
+complete -c borg -f -n __fish_borg_seen_help -a 'placeholders' -d 'Help for placeholders'
|
|
|
+complete -c borg -f -n __fish_borg_seen_help -a 'compression' -d 'Help for compression'
|
|
|
|
|
|
# Common options
|
|
|
complete -c borg -f -s h -l 'help' -d 'Show help information'
|
|
@@ -71,12 +83,14 @@ complete -c borg -l 'remote-path' -d 'Use PATH as remote borg
|
|
|
complete -c borg -f -l 'remote-ratelimit' -d 'Set remote network upload RATE limit'
|
|
|
complete -c borg -f -l 'consider-part-files' -d 'Treat part files like normal files'
|
|
|
complete -c borg -l 'debug-profile' -d 'Write execution profile into FILE'
|
|
|
+complete -c borg -l 'rsh' -d 'Use COMMAND instead of ssh'
|
|
|
|
|
|
# borg init options
|
|
|
set -l encryption_modes "none keyfile keyfile-blake2 repokey repokey-blake2 authenticated authenticated-blake2"
|
|
|
complete -c borg -f -s e -l 'encryption' -d 'Encryption key MODE' -a "$encryption_modes" -n "__fish_seen_subcommand_from init"
|
|
|
complete -c borg -f -l 'append-only' -d 'Create an append-only mode repository' -n "__fish_seen_subcommand_from init"
|
|
|
complete -c borg -f -l 'storage-quota' -d 'Set storage QUOTA of the repository' -n "__fish_seen_subcommand_from init"
|
|
|
+complete -c borg -f -l 'make-parent-dirs' -d 'Create parent directories' -n "__fish_seen_subcommand_from init"
|
|
|
|
|
|
# borg create options
|
|
|
complete -c borg -f -s n -l 'dry-run' -d 'Do not change the repository' -n "__fish_seen_subcommand_from create"
|
|
@@ -207,6 +221,9 @@ complete -c borg -f -l 'save-space' -d 'Work slower but using le
|
|
|
complete -c borg -f -s P -l 'prefix' -d 'Only archive names starting with PREFIX' -n "__fish_seen_subcommand_from prune"
|
|
|
complete -c borg -f -s a -l 'glob-archives' -d 'Only archive names matching GLOB' -n "__fish_seen_subcommand_from prune"
|
|
|
|
|
|
+# borg compact options
|
|
|
+complete -c borg -f -s n -l 'cleanup-commits' -d 'Cleanup commit-only segment files' -n "__fish_seen_subcommand_from compact"
|
|
|
+
|
|
|
# borg info options
|
|
|
complete -c borg -f -l 'json' -d 'Format output in json format' -n "__fish_seen_subcommand_from info"
|
|
|
# Archive filters
|
|
@@ -309,6 +326,8 @@ complete -c borg -f -l 'list' -d 'List the configuration o
|
|
|
# borg benchmark
|
|
|
# no specific options
|
|
|
|
|
|
+# borg help
|
|
|
+# no specific options
|
|
|
|
|
|
# List archives
|
|
|
|