2020-05-03 20:35:53 -07:00
function __fish_just_complete_recipes
just --summary 2 > /dev/null | tr " " "\n" || echo ""
end
# don't suggest files right off
complete -c just -n "__fish_is_first_arg" --no-files
# complete recipes
complete -c just -a '(__fish_just_complete_recipes)'
# autogenerated completions
2020-09-17 19:43:04 -07:00
complete -c just -n "__fish_use_subcommand" -l chooser -d 'Override binary invoked by `--choose`'
2020-01-15 01:20:38 -08:00
complete -c just -n "__fish_use_subcommand" -l color -d 'Print colorful output' -r -f -a "auto always never"
2021-02-09 01:00:04 -08:00
complete -c just -n "__fish_use_subcommand" -l list-heading -d 'Print <TEXT> before list'
complete -c just -n "__fish_use_subcommand" -l list-prefix -d 'Print <TEXT> before each list item'
complete -c just -n "__fish_use_subcommand" -s f -l justfile -d 'Use <JUSTFILE> as justfile'
2020-01-15 01:20:38 -08:00
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'
2021-05-09 20:35:35 -07:00
complete -c just -n "__fish_use_subcommand" -s c -l command -d 'Run an arbitrary command with the working directory, `.env`, overrides, and exports set'
2020-01-15 01:20:38 -08:00
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>'
2021-08-08 22:37:35 -07:00
complete -c just -n "__fish_use_subcommand" -l dotenv-filename -d 'Search for environment file named <DOTENV-FILENAME> instead of `.env`'
complete -c just -n "__fish_use_subcommand" -l dotenv-path -d 'Load environment file at <DOTENV-PATH> instead of searching for one'
2021-10-31 21:27:59 -07:00
complete -c just -n "__fish_use_subcommand" -l check -d 'Run `--fmt` in \' check\' mode. Exits with 0 if justfile is formatted correctly. Exits with 1 and prints a diff if formatting is required.'
2020-01-15 01:20:38 -08:00
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'
2020-05-23 20:41:12 -07:00
complete -c just -n "__fish_use_subcommand" -l no-dotenv -d 'Don\' t load `.env` file'
2020-01-15 01:20:38 -08:00
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'
2021-05-09 20:35:35 -07:00
complete -c just -n "__fish_use_subcommand" -l shell-command -d 'Invoke <COMMAND> with the shell used to run recipe lines and backticks'
2020-01-15 01:20:38 -08:00
complete -c just -n "__fish_use_subcommand" -l clear-shell-args -d 'Clear shell arguments'
2020-08-21 15:13:54 -07:00
complete -c just -n "__fish_use_subcommand" -s u -l unsorted -d 'Return list and summary entries in source order'
2021-06-12 15:34:41 -07:00
complete -c just -n "__fish_use_subcommand" -l unstable -d 'Enable unstable features'
2020-01-15 01:20:38 -08:00
complete -c just -n "__fish_use_subcommand" -s v -l verbose -d 'Use verbose output'
2021-07-31 13:53:27 -07:00
complete -c just -n "__fish_use_subcommand" -l changelog -d 'Print changelog'
2020-10-10 17:54:58 -07:00
complete -c just -n "__fish_use_subcommand" -l choose -d 'Select one or more recipes to run using a binary. If `--chooser` is not passed the chooser defaults to the value of $JUST_CHOOSER, falling back to `fzf`'
2020-01-15 01:20:38 -08:00
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`'
2021-04-25 17:25:34 -07:00
complete -c just -n "__fish_use_subcommand" -l evaluate -d 'Evaluate and print all variables. If a variable name is given as an argument, only print that variable\' s value.'
2021-06-08 01:01:27 -07:00
complete -c just -n "__fish_use_subcommand" -l fmt -d 'Format and overwrite justfile'
2020-01-15 01:20:38 -08:00
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'
2020-03-13 22:19:43 -07:00
complete -c just -n "__fish_use_subcommand" -l variables -d 'List names of variables'
2020-01-15 01:20:38 -08:00
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'