fish-shell/share/completions/pzstd.fish
Fabian Homborg 15c6d8fd4c completions/zstd: Remove code to figure out number of CPUs
This purported to need python > 3.4, but used anypython.

Plus it's not super useful anyway since it can easily be told to
use *all* cpus, so there's no need to set it to the precise number.

See #6400.

[ci skip]
2019-12-10 20:20:21 +01:00

30 lines
1.1 KiB
Fish

# Completions for pzstd
complete -c pzstd -s d -l decompress -d "Decompress" -x -a "
(
__fish_complete_suffix .zst
)
"
complete -c pzstd -s t -l test -d "Test the integrity"
for level in (seq 1 19)
complete -c pzstd -o $level -d "Set compression level"
end
complete -c pzstd -l ultra -d "Enable compression level beyond 19"
complete -x -c pzstd -s p -l processes -a "(seq 1 8)" -d "De/compress using NUM working threads"
complete -r -c pzstd -s o -d "Specify file to save"
complete -c pzstd -s f -l force -d "Overwrite without prompting"
complete -c pzstd -s c -l stdout -d "Force write to stdout"
complete -c pzstd -l rm -d "Remove input file(s) after de/compression"
complete -c pzstd -s k -l keep -d "Keep input file(s) (default)"
complete -c pzstd -s r -d "Recurse directories"
complete -c pzstd -s h -l help -d "Show help"
complete -c pzstd -s H -d "Show long help"
complete -c pzstd -s V -l version -d "Show version"
complete -c pzstd -s v -l verbose -d "Be verbose"
complete -c pzstd -s q -l quiet -d "Suppress warnings"
complete -c pzstd -l no-check -d "Disable integrity check"