mirror of
https://github.com/casey/just.git
synced 2024-11-23 11:04:09 +03:00
85e8015702
Make just print clap-generated shell completion scripts with `--completions` command. Currently, Bash, Zsh, Fish, PowerShell, and Elvish are supported. Additionally, the generated completion scripts are checked in to the `completions` folder.
23 lines
2.2 KiB
Fish
23 lines
2.2 KiB
Fish
complete -c just -n "__fish_use_subcommand" -l color -d 'Print colorful output' -r -f -a "auto always never"
|
|
complete -c just -n "__fish_use_subcommand" -s f -l justfile -d 'Use <JUSTFILE> as justfile.'
|
|
complete -c just -n "__fish_use_subcommand" -l set -d 'Override <VARIABLE> with <VALUE>'
|
|
complete -c just -n "__fish_use_subcommand" -l shell -d 'Invoke <SHELL> to run recipes'
|
|
complete -c just -n "__fish_use_subcommand" -l shell-arg -d 'Invoke shell with <SHELL-ARG> as an argument'
|
|
complete -c just -n "__fish_use_subcommand" -s d -l working-directory -d 'Use <WORKING-DIRECTORY> as working directory. --justfile must also be set'
|
|
complete -c just -n "__fish_use_subcommand" -l completions -d 'Print shell completion script for <SHELL>' -r -f -a "zsh bash fish powershell elvish"
|
|
complete -c just -n "__fish_use_subcommand" -s s -l show -d 'Show information about <RECIPE>'
|
|
complete -c just -n "__fish_use_subcommand" -l dry-run -d 'Print what just would do without doing it'
|
|
complete -c just -n "__fish_use_subcommand" -l highlight -d 'Highlight echoed recipe lines in bold'
|
|
complete -c just -n "__fish_use_subcommand" -l no-highlight -d 'Don\'t highlight echoed recipe lines in bold'
|
|
complete -c just -n "__fish_use_subcommand" -s q -l quiet -d 'Suppress all output'
|
|
complete -c just -n "__fish_use_subcommand" -l clear-shell-args -d 'Clear shell arguments'
|
|
complete -c just -n "__fish_use_subcommand" -s v -l verbose -d 'Use verbose output'
|
|
complete -c just -n "__fish_use_subcommand" -l dump -d 'Print entire justfile'
|
|
complete -c just -n "__fish_use_subcommand" -s e -l edit -d 'Edit justfile with editor given by $VISUAL or $EDITOR, falling back to `vim`'
|
|
complete -c just -n "__fish_use_subcommand" -l evaluate -d 'Print evaluated variables'
|
|
complete -c just -n "__fish_use_subcommand" -l init -d 'Initialize new justfile in project root'
|
|
complete -c just -n "__fish_use_subcommand" -s l -l list -d 'List available recipes and their arguments'
|
|
complete -c just -n "__fish_use_subcommand" -l summary -d 'List names of available recipes'
|
|
complete -c just -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
|
|
complete -c just -n "__fish_use_subcommand" -s V -l version -d 'Print version information'
|