mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00:00
Normalize *sum (md5sum et al) completions
This commit is contained in:
parent
3f30096727
commit
8a9b7dc63a
7 changed files with 15 additions and 19 deletions
|
@ -1 +1,10 @@
|
|||
__fish_complete_xsum md5sum
|
||||
complete -c md5sum -d "Compute and check message digest" -r
|
||||
complete -c md5sum -s b -l binary -d 'Read in binary mode'
|
||||
complete -c md5sum -s c -l check -d "Read sums from files and check them"
|
||||
complete -c md5sum -s t -l text -d 'Read in text mode'
|
||||
complete -c md5sum -l quiet -d 'Don''t print OK for each successfully verified file'
|
||||
complete -c md5sum -l status -d 'Don''t output anything, status code shows success'
|
||||
complete -c md5sum -s w -l warn -d 'Warn about improperly formatted checksum lines'
|
||||
complete -c md5sum -l strict -d 'With --check, exit non-zero for any invalid input'
|
||||
complete -c md5sum -l help -d 'Display help text'
|
||||
complete -c md5sum -l version -d 'Output version information and exit'
|
||||
|
|
|
@ -1 +1 @@
|
|||
__fish_complete_xsum sha1sum
|
||||
complete -c sha1sum -w md5sum
|
||||
|
|
|
@ -1 +1 @@
|
|||
__fish_complete_xsum sha224sum
|
||||
complete -c sha224sum -w md5sum
|
||||
|
|
|
@ -1 +1 @@
|
|||
__fish_complete_xsum sha256sum
|
||||
complete -c sha256sum -w md5sum
|
||||
|
|
|
@ -1 +1 @@
|
|||
__fish_complete_xsum sha384sum
|
||||
complete -c sha384sum -w md5sum
|
||||
|
|
|
@ -1 +1 @@
|
|||
__fish_complete_xsum sha512sum
|
||||
complete -c sha512sum -w md5sum
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
function __fish_complete_xsum --description 'Complete md5sum sha1 etc' --argument-names cmd
|
||||
complete -c $cmd -d "Compute and check $cmd message digest" -r
|
||||
complete -c $cmd -s b -l binary -d 'Read in binary mode'
|
||||
complete -c $cmd -s c -l check -d "Read $cmd sums from files and check them"
|
||||
complete -c $cmd -s t -l text -d 'Read in text mode'
|
||||
complete -c $cmd -l quiet -d 'Don\'t print OK for each successfully verified file'
|
||||
complete -c $cmd -l status -d 'Don\'t output anything, status code shows success'
|
||||
complete -c $cmd -s w -l warn -d 'Warn about improperly formatted checksum lines'
|
||||
complete -c $cmd -l strict -d 'With --check, exit non-zero for any invalid input'
|
||||
complete -c $cmd -l help -d 'Display help text'
|
||||
complete -c $cmd -l version -d 'Output version information and exit'
|
||||
end
|
||||
|
Loading…
Reference in a new issue