aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/atool.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-07-20 12:32:03 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-20 15:19:02 -0700
commit52ff997bf00212184540f9d30b618cb3d80d1671 (patch)
tree0bb03882921fad9673471d27af8b7bf99c336e77 /share/completions/atool.fish
parent08911e2dcc31a6d7acf4ba186d953cb85b0fa5c4 (diff)
Normalize atool completions
Remove function, use wrapping.
Diffstat (limited to 'share/completions/atool.fish')
-rw-r--r--share/completions/atool.fish28
1 files changed, 27 insertions, 1 deletions
diff --git a/share/completions/atool.fish b/share/completions/atool.fish
index 09480e54..eb85fa63 100644
--- a/share/completions/atool.fish
+++ b/share/completions/atool.fish
@@ -1,3 +1,29 @@
+complete -c atool -r -d 'Manage file archives of various types'
-__fish_complete_atool atool
+##Commands:
+complete -c atool -s l -l list -d 'list files in archive (als)'
+complete -c atool -s x -l extract -d 'extract files from archive (aunpack)'
+complete -c atool -s X -l extract-to -r -d 'extract archive to specified directory'
+complete -c atool -s a -l add -d 'create archive (apack)'
+complete -c atool -s c -l cat -d 'extract file to standard out (acat)'
+complete -c atool -s d -l diff -d 'generate a diff between two archives (adiff)'
+complete -c atool -s r -l repack -d 'repack archives to a different format (arepack)'
+complete -c atool -l help -d 'display this help and exit'
+complete -c atool -l version -d 'output version information and exit'
+##Options:
+complete -c atool -s e -l each -d 'execute command above for each file specified'
+complete -c atool -s F -l format -d 'override archive format (see below)' -xa "(man atool | sgrep -E '^\s+(\S+)\s+\(\..+\)' | sed -r 's/\s+(\S+)\s+\((.+)\)/\1\t\2/')"
+complete -c atool -s O -l format-option -x -d 'give specific options to the archiver'
+complete -c atool -s D -l subdir -d 'always create subdirectory when extracting'
+complete -c atool -s f -l force -d 'allow overwriting of local files'
+complete -c atool -s q -l quiet -d 'decrease verbosity level by one'
+complete -c atool -s v -l verbose -d 'increase verbosity level by one'
+complete -c atool -s V -l verbosity -d 'specify verbosity (0, 1 or 2)' -xa '(seq 0 2)'
+complete -c atool -s p -l page -d 'send output through pager'
+complete -c atool -s 0 -l null -d 'filenames from standard in are null-byte separated'
+complete -c atool -s E -l explain -d 'explain what is being done by atool'
+complete -c atool -s S -l simulate -d 'simulation mode - no filesystem changes are made'
+complete -c atool -s o -l option -x -d 'override a configuration option (KEY=VALUE)'
+complete -c atool -l config -r -d 'load configuration defaults from file'
+#man -P cat atool | grep '(default')'