fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
00e0d6ad9
master
1# global option 2complete -c dart -s h -l help -d"Print this usage information" 3complete -c dart -s v -l verbose -d"Show additional command output" 4complete -c dart -l version -d"Print the Dart SDK version" 5complete -c dart -l enable-analytics -d"Enable analytics" 6complete -c dart -l disable-analytics -d"Disable analytics" 7 8# commands 9complete -f -c dart -n __fish_use_subcommand -xa analyze -d"Analyze Dart code in a directory" 10complete -f -c dart -n __fish_use_subcommand -xa compile -d"Compile Dart to various formats" 11complete -f -c dart -n __fish_use_subcommand -xa create -d"Create a new Dart project" 12complete -f -c dart -n __fish_use_subcommand -xa fix -d"Apply automated fixes to Dart source code" 13complete -f -c dart -n __fish_use_subcommand -xa format -d"Idiomatically format Dart source code" 14complete -f -c dart -n __fish_use_subcommand -xa migrate -d"Perform null safety migration on a project" 15complete -f -c dart -n __fish_use_subcommand -xa pub -d"Work with packages" 16complete -f -c dart -n __fish_use_subcommand -xa run -d"Run a Dart program" 17complete -f -c dart -n __fish_use_subcommand -xa test -d"Run tests for a project" 18 19# analyze 20complete -c dart -n'__fish_seen_subcommand_from analyze' -l fatal-infos -d'Treat info level issues as fatal' 21complete -c dart -n'__fish_seen_subcommand_from analyze' -l fatal-warnings -d'Treat warning level issues as fatal. (default on)' 22complete -c dart -n'__fish_seen_subcommand_from analyze' -l no-fatal-warnings -d'Don\'t treat warning level issues as fatal. (default on)' 23 24# compile 25complete -c dart -n'__fish_seen_subcommand_from compile' -xa aot-snapshot -d'Compile Dart to an AOT snapshot' 26complete -c dart -n'__fish_seen_subcommand_from compile' -xa exe -d'Compile Dart to a self-contained executable' 27complete -c dart -n'__fish_seen_subcommand_from compile' -xa jit-snapshot -d'Compile Dart to a JIT snapshot' 28complete -c dart -n'__fish_seen_subcommand_from compile' -xa js -d'Compile Dart to JavaScript' 29complete -c dart -n'__fish_seen_subcommand_from compile' -xa kernel -d'Compile Dart to a kernel snapshot' 30 31# create 32complete -c dart -n'__fish_seen_subcommand_from create' -s t -l template -d'The project template to use' -xa'console-simple\tdefault console-full package-simple server-shelf web-simple' 33complete -c dart -n'__fish_seen_subcommand_from create' -l pub -d'Run \'pub get\' after the project has been created (default)' 34complete -c dart -n'__fish_seen_subcommand_from create' -l no-pub -d'Don\'t run \'pub get\' after the project has been created (default yes)' 35complete -c dart -n'__fish_seen_subcommand_from create' -l force -d'Force project generation, even if the target directory already exists' 36 37# fix 38complete -c dart -n'__fish_seen_subcommand_from fix' -s n -d'Preview the proposed changes but make no changes' 39complete -c dart -n'__fish_seen_subcommand_from fix' -l dry-run -d'Preview the proposed changes but make no changes' 40complete -c dart -n'__fish_seen_subcommand_from fix' -l apply -d'Apply the proposed changes' 41 42# format 43complete -c dart -n'__fish_seen_subcommand_from format' -s o -l output -d'Set where to write formatted output' 44complete -c dart -n'__fish_seen_subcommand_from format' -l set-exit-if-changed -d'Return exit code 1 if there are any formatting changes' 45complete -c dart -n'__fish_seen_subcommand_from format' -l fix -d'Apply all style fixes' 46complete -c dart -n'__fish_seen_subcommand_from format' -s l -l line-length -d'Wrap lines longer than this. (default "80")' 47 48# migrate 49complete -c dart -n'__fish_seen_subcommand_from migrate' -l apply-changes -d'Apply the proposed null safety changes to the files on disk' 50complete -c dart -n'__fish_seen_subcommand_from migrate' -l ignore-errors -d'Attempt to perform null safety analysis even if the project has analysis errors' 51complete -c dart -n'__fish_seen_subcommand_from migrate' -l skip-import-check -d'Go ahead with migration even if some imported files have not yet been migrated' 52complete -c dart -n'__fish_seen_subcommand_from migrate' -l web-preview -d'Show preview of the proposed null safety changes in a browser window' 53complete -c dart -n'__fish_seen_subcommand_from migrate' -l no-web-preview -d'Show preview of the proposed null safety changes in the console' 54complete -c dart -n'__fish_seen_subcommand_from migrate' -l preview-hostname -d'Run the preview server on the specified hostname' 55complete -c dart -n'__fish_seen_subcommand_from migrate' -l preview-port -d'Run the preview server on the specified port' 56 57# pub 58complete -c dart -n'__fish_seen_subcommand_from pub' -s C -l directory -d'Run the subcommand in this directory. (default "")' 59complete -c dart -n'__fish_seen_subcommand_from pub' -xa add -d'Add a dependency to pubspec.yaml' 60complete -c dart -n'__fish_seen_subcommand_from pub' -xa cache -d'Work with the system cache' 61complete -c dart -n'__fish_seen_subcommand_from pub' -xa deps -d'Print package dependencies' 62complete -c dart -n'__fish_seen_subcommand_from pub' -xa downgrade -d'Downgrade the current package\'s dependencies to oldest versions' 63complete -c dart -n'__fish_seen_subcommand_from pub' -xa get -d'Get the current package\'s dependencies' 64complete -c dart -n'__fish_seen_subcommand_from pub' -xa global -d'Work with global packages' 65complete -c dart -n'__fish_seen_subcommand_from pub' -xa login -d'Log into pub.dev' 66complete -c dart -n'__fish_seen_subcommand_from pub' -xa logout -d'Log out of pub.dev' 67complete -c dart -n'__fish_seen_subcommand_from pub' -xa outdated -d'Analyze your dependencies to find which ones can be upgraded' 68complete -c dart -n'__fish_seen_subcommand_from pub' -xa publish -d'Publish the current package to pub.dartlang.org' 69complete -c dart -n'__fish_seen_subcommand_from pub' -xa remove -d'Removes a dependency from the current package' 70complete -c dart -n'__fish_seen_subcommand_from pub' -xa upgrade -d'Upgrade the current package\'s dependencies to latest versions' 71complete -c dart -n'__fish_seen_subcommand_from pub' -xa ploader -d'Manage uploaders for a package on pub.dartlang.org' 72 73# run 74complete -c dart -n'__fish_seen_subcommand_from run' -l observe -d'Run a program with common options for debugging' 75complete -c dart -n'__fish_seen_subcommand_from run' -l enable-vm-service -d'Enables VM service and listen on the specified port (default localhost:8181)' 76complete -c dart -n'__fish_seen_subcommand_from run' -l serve-devtools -d'Serve Dart DevTools debugger/profiler via service at <vm-service-uri>/devtools' 77complete -c dart -n'__fish_seen_subcommand_from run' -l no-serve-devtools -d'Serve Dart DevTools debugger/profiler via service at <vm-service-uri>/devtools' 78complete -c dart -n'__fish_seen_subcommand_from run' -l pause-isolates-on-exit -d'Pause isolates on exit when running with --enable-vm-service' 79complete -c dart -n'__fish_seen_subcommand_from run' -l no-pause-isolates-on-exit -d'Pause isolates on exit when running with --enable-vm-service' 80complete -c dart -n'__fish_seen_subcommand_from run' -l pause-isolates-on-unhandled-exceptions -d'Pause isolates after unhandled exception when running with --enable-vm-service' 81complete -c dart -n'__fish_seen_subcommand_from run' -l no-pause-isolates-on-unhandled-exceptions -d'Don\'t pause isolates after unhandled exception when running with --enable-vm-service' 82complete -c dart -n'__fish_seen_subcommand_from run' -l warn-on-pause-with-no-debugger -d'Warn when isolate pauses with no attached debugger when running with --enable-vm-service' 83complete -c dart -n'__fish_seen_subcommand_from run' -l no-warn-on-pause-with-no-debugger -d'Don\'t warn when isolate pauses with no attached debugger when running with --enable-vm-service' 84complete -c dart -n'__fish_seen_subcommand_from run' -l pause-isolates-on-start -d'Pause isolates on start when running with --enable-vm-service' 85complete -c dart -n'__fish_seen_subcommand_from run' -l no-pause-isolates-on-start -d'Don\'t pause isolates on start when running with --enable-vm-service' 86complete -c dart -n'__fish_seen_subcommand_from run' -l enable-asserts -d'Enable assert statements' 87complete -c dart -n'__fish_seen_subcommand_from run' -l no-enable-asserts -d'Disable assert statements' 88complete -c dart -n'__fish_seen_subcommand_from run' -l verbosity -d'Sets the verbosity level of the compilation' 89complete -c dart -n'__fish_seen_subcommand_from run' -s D -l define -d'Define an environment declaration'