Add completions for scrypt

(cherry picked from commit 189f4ca3c3)
This commit is contained in:
Shun Sakai 2023-02-17 20:39:03 +09:00 committed by David Adam
parent 89880839e8
commit 76d9de6282
2 changed files with 25 additions and 0 deletions

View File

@ -39,11 +39,13 @@ Improved prompts
Completions
^^^^^^^^^^^
- Added completions for:
- ``apkanalyzer``
- ``otool``
- ``pre-commit`` (:issue:`9521`)
- ``proxychains`` (:issue:`9486`)
- ``mix phx``
- ``neovim``
- ``scrypt``
- ``stow``
- ``trash`` and helper utilities ``trash-empty``, ``trash-list``, ``trash-put``, ``trash-restore``
- Improvements to many completions.

View File

@ -0,0 +1,23 @@
# Completions for the scrypt encryption utility
complete -x -c scrypt -n __fish_use_subcommand -a enc -d "Encrypt file"
complete -x -c scrypt -n __fish_use_subcommand -a dec -d "Decrypt file"
complete -x -c scrypt -n __fish_use_subcommand -a info -d "Print information about the encryption parameters"
complete -c scrypt -n "__fish_seen_subcommand_from enc dec" -s f -d "Force the operation to proceed"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -l logN -a "(seq 10 40)" -d "Set the work parameter N"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -s M -d "Use at most the specified bytes of RAM"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -s m -d "Use at most the specified fraction of the available RAM"
complete -c scrypt -n "__fish_seen_subcommand_from enc dec" -s P -d "Deprecated synonym for `--passphrase dev:stdin-once`"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -s p -a "(seq 1 32)" -d "Set the work parameter p"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -l passphrase -a "
dev:tty-stdin\t'Read from /dev/tty, or stdin if fails (default)'
dev:stdin-once\t'Read from stdin'
dev:tty-once\t'Read from /dev/tty'
env:(set -xn)\t'Read from the environment variable'
file:(__fish_complete_path)\t'Read from the file'
" -d "Read the passphrase using the specified method"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -s r -a "(seq 1 32)" -d "Set the work parameter r"
complete -x -c scrypt -n "__fish_seen_subcommand_from enc dec" -s t -d "Use at most the specified seconds of CPU time"
complete -c scrypt -n "__fish_seen_subcommand_from enc dec" -s v -d "Print encryption parameters and memory/CPU limits"
complete -x -c scrypt -n "not __fish_seen_subcommand_from enc dec info" -l version -d "Print version"