fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a7559a62c
master
1# cjpm.fish - Fish completion script for Cangjie Package Manager 2 3# Global options 4complete -c cjpm -l help -s h -d"Help for cjpm" 5complete -c cjpm -l version -s v -d"Version for cjpm" 6 7# Subcommands 8complete -c cjpm -n __fish_use_subcommand -f -a init -d"Init a new cangjie module" 9complete -c cjpm -n __fish_use_subcommand -f -a check -d"Check the dependencies" 10complete -c cjpm -n __fish_use_subcommand -f -a update -d"Update cjpm.lock" 11complete -c cjpm -n __fish_use_subcommand -f -a tree -d"Display the package dependencies in the source code" 12complete -c cjpm -n __fish_use_subcommand -f -a build -d"Compile the current module" 13complete -c cjpm -n __fish_use_subcommand -f -a run -d"Compile and run an executable product" 14complete -c cjpm -n __fish_use_subcommand -f -a test -d"Unittest a local package or module" 15complete -c cjpm -n __fish_use_subcommand -f -a bench -d"Run benchmarks in a local package or module" 16complete -c cjpm -n __fish_use_subcommand -f -a clean -d"Clean up the target directory" 17complete -c cjpm -n __fish_use_subcommand -f -a install -d"Install a cangjie binary" 18complete -c cjpm -n __fish_use_subcommand -f -a uninstall -d"Uninstall a cangjie binary" 19 20# 'init' subcommand options 21complete -c cjpm -n"__fish_seen_subcommand_from init" -f -l help -s h -d"Help for init" 22complete -c cjpm -n"__fish_seen_subcommand_from init" -f -l workspace -d"Initialize a workspace's default configuration file" 23complete -c cjpm -n"__fish_seen_subcommand_from init" -f -l name -d"Specify root package name (default: current directory)" -r 24complete -c cjpm -n"__fish_seen_subcommand_from init" -l path -d"Specify path to create the module (default: current directory)" -r 25complete -c cjpm -n"__fish_seen_subcommand_from init" -f -l type -d"Define output type of current module" -r -f -a"executable static dynamic" 26 27# 'run' subcommand options 28complete -c cjpm -n"__fish_seen_subcommand_from run" -f -l name -d"Name of the executable product to run (default: main)" -r 29complete -c cjpm -n"__fish_seen_subcommand_from run" -f -l build-args -d"Arguments to pass to the build process" -r 30complete -c cjpm -n"__fish_seen_subcommand_from run" -f -l skip-build -d"Skip compile, only run the executable product" 31complete -c cjpm -n"__fish_seen_subcommand_from run" -f -l run-args -d"Arguments to pass to the executable product" -r 32complete -c cjpm -n"__fish_seen_subcommand_from run" -l target-dir -d"Specify target directory" -r 33complete -c cjpm -n"__fish_seen_subcommand_from run" -f -s g -d"Enable debug version" 34complete -c cjpm -n"__fish_seen_subcommand_from run" -f -s h -l help -d"Help for run" 35complete -c cjpm -n"__fish_seen_subcommand_from run" -f -s V -l verbose -d"Enable verbose" 36complete -c cjpm -n"__fish_seen_subcommand_from run" -f -l skip-script -d"Disable script 'build.cj'" 37 38# 'install' subcommand options 39complete -c cjpm -n"__fish_seen_subcommand_from install" -f -s h -l help -d"Help for install" 40complete -c cjpm -n"__fish_seen_subcommand_from install" -f -s V -l verbose -d"Enable verbose" 41complete -c cjpm -n"__fish_seen_subcommand_from install" -f -s m -l member -d"Specify a member module of the workspace" -r 42complete -c cjpm -n"__fish_seen_subcommand_from install" -f -s g -d"Enable install debug version target" 43complete -c cjpm -n"__fish_seen_subcommand_from install" -l path -d"Specify path of source module (default: current path)" -r 44complete -c cjpm -n"__fish_seen_subcommand_from install" -l root -d"Specify path of installed binary" -r 45complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l git -d"Specify URL of installed git module" -r 46complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l branch -d"Specify branch of installed git module" -r 47complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l tag -d"Specify tag of installed git module" -r 48complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l commit -d"Specify commit ID of installed git module" -r 49complete -c cjpm -n"__fish_seen_subcommand_from install" -f -s j -l jobs -d"Number of jobs to spawn in parallel" -r 50complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l cfg -d"Enable the customized option 'cfg'" 51complete -c cjpm -n"__fish_seen_subcommand_from install" -l target-dir -d"Specify target directory" -r 52complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l name -d"Specify product name to install (default: all)" -r 53complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l skip-build -d"Install binary in target directory without building" 54complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l list -d"List all installed modules and their versions" 55complete -c cjpm -n"__fish_seen_subcommand_from install" -f -l skip-script -d"Disable script 'build.cj'" 56 57# 'build' subcommand options 58complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s h -l help -d"Help for build" 59complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s i -l incremental -d"Enable incremental compilation" 60complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s j -l jobs -d"Number of jobs to spawn in parallel" -r 61complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s V -l verbose -d"Enable verbose" 62complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s g -d"Enable compile debug version target" 63complete -c cjpm -n"__fish_seen_subcommand_from build" -f -l coverage -d"Enable coverage" 64complete -c cjpm -n"__fish_seen_subcommand_from build" -f -l cfg -d"Enable the customized option 'cfg'" 65complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s m -l member -d"Specify a member module of the workspace" -r 66complete -c cjpm -n"__fish_seen_subcommand_from build" -f -l target -d"Generate code for the given target platform" -r 67complete -c cjpm -n"__fish_seen_subcommand_from build" -l target-dir -d"Specify target directory" -r 68complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s o -l output -d"Specify product name when compiling an executable file" -r 69complete -c cjpm -n"__fish_seen_subcommand_from build" -f -s l -l lint -d"Enable cjlint code check" 70complete -c cjpm -n"__fish_seen_subcommand_from build" -f -l mock -d"Enable support of mocking classes in tests" 71complete -c cjpm -n"__fish_seen_subcommand_from build" -f -l skip-script -d"Disable script 'build.cj'" 72 73# 'test' subcommand options 74complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s h -l help -d"Help for test" 75complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s j -l jobs -d"Number of jobs to spawn in parallel" -r 76complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s V -l verbose -d"Enable verbose" 77complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s g -d"Enable compile debug version tests" 78complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s i -l incremental -d"Enable incremental compilation" 79complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l no-run -d"Compile, but don't run tests" 80complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l skip-build -d"Skip compile, only run tests" 81complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l coverage -d"Enable coverage" 82complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l cfg -d"Enable the customized option 'cfg'" 83complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l module -d"Specify modules to test (default: current module)" -r 84complete -c cjpm -n"__fish_seen_subcommand_from test" -f -s m -l member -d"Specify a member module of the workspace" -r 85complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l target -d"Unittest for the given target platform" -r 86complete -c cjpm -n"__fish_seen_subcommand_from test" -l target-dir -d"Specify target directory" -r 87complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l dry-run -d"Print tests without execution" 88complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l filter -d"Enable filter test" -r 89complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l include-tags -d"Run tests with specified tags" -r 90complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l exclude-tags -d"Run tests without specified tags" -r 91complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l no-color -d"Enable colorless result output" 92complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l random-seed -d"Enable random seed" -r 93complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l timeout-each -d"Specify default timeout for test cases" -r 94complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l parallel -d"Number of workers running tests" -r 95complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l show-all-output -d"Show output for all test cases" 96complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l no-capture-output -d"Disable test output capturing" 97complete -c cjpm -n"__fish_seen_subcommand_from test" -l report-path -d"Specify path to directory of report" -r 98complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l report-format -d"Specify format of report" -r 99complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l skip-script -d"Disable script 'build.cj'" 100complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l no-progress -d"Disable progress report" 101complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l progress-brief -d"Display brief progress report" 102complete -c cjpm -n"__fish_seen_subcommand_from test" -f -l progress-entries-limit -d"Limit number of entries shown in progress report"