Tweak ninja completions

This commit is contained in:
Aaron Gyes 2017-10-09 01:21:04 -07:00
parent 21473b20ec
commit 59dbc7ca6a

View file

@ -1,10 +1,13 @@
complete -c ninja -f -a '(__fish_print_ninja_targets)' -d Target
complete -x -c ninja -s t -x -a "(__fish_print_ninja_tools)" -d Tools
complete -x -c ninja -s C -x -a "(__fish_complete_directories (commandline -ct))" -d "Change to DIR"
complete -c ninja -s f -x -d "specify build file"
complete -c ninja -f -a '(__fish_print_ninja_targets)' -d target
complete -x -c ninja -s t -x -a "(__fish_print_ninja_tools)" -d subtool
complete -x -c ninja -s C -x -a "(__fish_complete_directories (commandline -ct))" -d "change to specified directory"
complete -c ninja -s f -x -d "specify build file [default=build.ninja]"
complete -f -c ninja -s n -d "dry run"
complete -f -c ninja -s v -d "show all command lines while building"
complete -f -c ninja -s j -d "number of jobs"
complete -f -c ninja -s l -d "do not start if load > N"
complete -f -c ninja -s k -d "keep until N jobs fail"
complete -f -c ninja -s h -d "help"
complete -f -c ninja -s j -d "number of jobs to run in parallel [default derived from CPUs]"
complete -f -c ninja -s l -d "do not start if load average > N"
complete -f -c ninja -s k -d "keep going until N jobs fail [default=1]"
complete -f -c ninja -s h -d "show help"
complete -f -c ninja -s d -d "enable debugging, specify debug mode"
complete -f -c ninja -s w -d "adjust warnings, specify flags"
complete -f -c ninja -l version -d "print ninja version"