tide/completions/tide.fish
Varun Madiath 95b0d7802b
Allow for installation into non-standard locations (#65)
* Allow for installation into non-standard locations

This is useful when installed via fisher, if the user has set up
$fisher_path to be something other than ~/.config/fish

* Use simpler regex

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2020-12-31 21:07:13 -08:00

15 lines
1.1 KiB
Fish

complete -c tide -x -n '__fish_use_subcommand' -a --help -d "Print help message"
complete -c tide -x -n '__fish_use_subcommand' -a --version -d "Print tide version"
complete -c tide -x -n '__fish_use_subcommand' -a bug-report -d "Print info for use in bug reports"
complete -c tide -x -n '__fish_use_subcommand' -a configure -d "Run the configuration wizard"
complete -c tide -x -n '__fish_use_subcommand' -a test -d "Run tide tests"
complete -c tide -x -n '__fish_seen_subcommand_from test' -a --all -d "Run all available tests"
complete -c tide -x -n '__fish_seen_subcommand_from test' -a --CI -d "Run tests designed for CI"
complete -c tide -x -n '__fish_seen_subcommand_from test' -a --help -d "Print help message"
complete -c tide -x -n '__fish_seen_subcommand_from test' -a --install -d "Install testing dependencies"
complete -c tide -x -n '__fish_seen_subcommand_from test' -a --verbose -d "Display test output even if passed"
for file in (string replace --all --regex '^.*/|\.fish$' '' $_tide_root/functions/tide/tests/*.fish)
complete -c tide -x -n "__fish_seen_subcommand_from test" -a $file
end