just.fish

 1function __fish_just_complete_recipes
 2        if string match -rq '(-f|--justfile)\s*=?(?<justfile>[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1]
 3          set -fx JUST_JUSTFILE "$justfile"
 4        end
 5        printf "%s\n" (string split " " (just --summary))
 6end
 7
 8# don't suggest files right off
 9complete -c just -n "__fish_is_first_arg" --no-files
10
11# complete recipes
12complete -c just -a '(__fish_just_complete_recipes)'
13
14# autogenerated completions
15complete -c just -l alias-style -d 'Set list command alias display style' -r -f -a "left\t''
16right\t''
17separate\t''"
18complete -c just -l ceiling -d 'Do not ascend above <CEILING> directory when searching for a justfile.' -r -F
19complete -c just -l chooser -d 'Override binary invoked by `--choose`' -r
20complete -c just -l color -d 'Print colorful output' -r -f -a "always\t''
21auto\t''
22never\t''"
23complete -c just -l command-color -d 'Echo recipe lines in <COMMAND-COLOR>' -r -f -a "black\t''
24blue\t''
25cyan\t''
26green\t''
27purple\t''
28red\t''
29yellow\t''"
30complete -c just -l cygpath -d 'Use binary at <CYGPATH> to convert between unix and Windows paths.' -r -F
31complete -c just -l dotenv-filename -d 'Search for environment file named <DOTENV-FILENAME> instead of `.env`' -r
32complete -c just -s E -l dotenv-path -d 'Load <DOTENV-PATH> as environment file instead of searching for one' -r -F
33complete -c just -l dump-format -d 'Dump justfile as <FORMAT>' -r -f -a "json\t''
34just\t''"
35complete -c just -s f -l justfile -d 'Use <JUSTFILE> as justfile' -r -F
36complete -c just -l list-heading -d 'Print <TEXT> before list' -r
37complete -c just -l list-prefix -d 'Print <TEXT> before each list item' -r
38complete -c just -l set -d 'Override <VARIABLE> with <VALUE>' -r
39complete -c just -l shell -d 'Invoke <SHELL> to run recipes' -r
40complete -c just -l shell-arg -d 'Invoke shell with <SHELL-ARG> as an argument' -r
41complete -c just -l tempdir -d 'Save temporary files to <TEMPDIR>.' -r -F
42complete -c just -l timestamp-format -d 'Timestamp format string' -r
43complete -c just -s d -l working-directory -d 'Use <WORKING-DIRECTORY> as working directory. --justfile must also be set' -r -F
44complete -c just -s c -l command -d 'Run an arbitrary command with the working directory, `.env`, overrides, and exports set' -r
45complete -c just -l completions -d 'Print shell completion script for <SHELL>' -r -f -a "bash\t''
46elvish\t''
47fish\t''
48nushell\t''
49powershell\t''
50zsh\t''"
51complete -c just -s l -l list -d 'List available recipes in <MODULE> or root if omitted' -r
52complete -c just -l request -d 'Execute <REQUEST>. For internal testing purposes only. May be changed or removed at any time.' -r
53complete -c just -s s -l show -d 'Show recipe at <PATH>' -r
54complete -c just -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.'
55complete -c just -l clear-shell-args -d 'Clear shell arguments'
56complete -c just -s n -l dry-run -d 'Print what just would do without doing it'
57complete -c just -l explain -d 'Print recipe doc comment before running it'
58complete -c just -s g -l global-justfile -d 'Use global justfile'
59complete -c just -l highlight -d 'Highlight echoed recipe lines in bold'
60complete -c just -l list-submodules -d 'List recipes in submodules'
61complete -c just -l no-aliases -d 'Don\'t show aliases in list'
62complete -c just -l no-deps -d 'Don\'t run recipe dependencies'
63complete -c just -l no-dotenv -d 'Don\'t load `.env` file'
64complete -c just -l no-highlight -d 'Don\'t highlight echoed recipe lines in bold'
65complete -c just -l one -d 'Forbid multiple recipes from being invoked on the command line'
66complete -c just -s q -l quiet -d 'Suppress all output'
67complete -c just -l allow-missing -d 'Ignore missing recipe and module errors'
68complete -c just -l shell-command -d 'Invoke <COMMAND> with the shell used to run recipe lines and backticks'
69complete -c just -l timestamp -d 'Print recipe command timestamps'
70complete -c just -s u -l unsorted -d 'Return list and summary entries in source order'
71complete -c just -l unstable -d 'Enable unstable features'
72complete -c just -s v -l verbose -d 'Use verbose output'
73complete -c just -l yes -d 'Automatically confirm all recipes.'
74complete -c just -l changelog -d 'Print changelog'
75complete -c just -l choose -d 'Select one or more recipes to run using a binary chooser. If `--chooser` is not passed the chooser defaults to the value of $JUST_CHOOSER, falling back to `fzf`'
76complete -c just -l dump -d 'Print justfile'
77complete -c just -s e -l edit -d 'Edit justfile with editor given by $VISUAL or $EDITOR, falling back to `vim`'
78complete -c just -l evaluate -d 'Evaluate and print all variables. If a variable name is given as an argument, only print that variable\'s value.'
79complete -c just -l fmt -d 'Format and overwrite justfile'
80complete -c just -l groups -d 'List recipe groups'
81complete -c just -l init -d 'Initialize new justfile in project root'
82complete -c just -l man -d 'Print man page'
83complete -c just -l summary -d 'List names of available recipes'
84complete -c just -l variables -d 'List names of variables'
85complete -c just -s h -l help -d 'Print help'
86complete -c just -s V -l version -d 'Print version'