Compare commits
1 Commits
306779747c
...
93a6fb477a
| Author | SHA1 | Date |
|---|---|---|
|
|
93a6fb477a |
92
src/_dart
92
src/_dart
|
|
@ -24,7 +24,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for dart 3.13.0 (https://dart.dev/)
|
# Completion script for dart 3.12.0 (https://dart.dev/)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -60,26 +60,6 @@ _dart() {
|
||||||
'1: :_dart_subcommands' \
|
'1: :_dart_subcommands' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
(install)
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
|
||||||
'--overwrite[Overwrite executables from other packages with the same name]' \
|
|
||||||
'*:package' \
|
|
||||||
&& ret=0
|
|
||||||
;;
|
|
||||||
(installed)
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
|
||||||
'(-a --all)'{-a,--all}'[Also list packages which are currently not active]'
|
|
||||||
'*:package' \
|
|
||||||
&& ret=0
|
|
||||||
;;
|
|
||||||
(uninstall)
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
|
||||||
'*:package' \
|
|
||||||
&& ret=0
|
|
||||||
;;
|
|
||||||
(analyze)
|
(analyze)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
'(- *)'{-h,--help}'[Print this usage information]' \
|
||||||
|
|
@ -89,9 +69,6 @@ _dart() {
|
||||||
'*: :_files -/' \
|
'*: :_files -/' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
(build)
|
|
||||||
_dart_build && ret=0
|
|
||||||
;;
|
|
||||||
(compile)
|
(compile)
|
||||||
_dart_compile && ret=0
|
_dart_compile && ret=0
|
||||||
;;
|
;;
|
||||||
|
|
@ -211,47 +188,6 @@ _dart() {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_dart_build] )) ||
|
|
||||||
_dart_build() {
|
|
||||||
local ret=1
|
|
||||||
|
|
||||||
local -a commands=(
|
|
||||||
'cli:Build a Dart application with a command line interface (CLI)'
|
|
||||||
)
|
|
||||||
|
|
||||||
_arguments -C \
|
|
||||||
'(- *)'{-h,--help}'[Show help and usage information]' \
|
|
||||||
'1: :(($commands))' \
|
|
||||||
'*:: :->subcmd' && ret=0
|
|
||||||
|
|
||||||
case $state in
|
|
||||||
(subcmd)
|
|
||||||
local -a options=(
|
|
||||||
'(- *)'{-h,--help}'[Show help and usage information]'
|
|
||||||
)
|
|
||||||
case $words[1] in
|
|
||||||
(cli)
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[Show help and usage information]' \
|
|
||||||
'(-o --output)'{-o,--output=}'[Write the output to <output>/bundle/]:output:_files -/' \
|
|
||||||
'(-t --target)'{-t,--target=}'[Main entry-point file of the command-line application]:file:_files' \
|
|
||||||
'(-p --packages)'{-p,--packages=}'[Get package locations from the specified file]:file:_files' \
|
|
||||||
'--verbosity=[Set the verbosity level of the compilation]:level:(error warning info all)' \
|
|
||||||
'--depfile=[Path to an output file in Ninja depfile format containing compilation dependencies]:path:_files' \
|
|
||||||
'--target-sanitizer[Build with a specific target sanitizer]:sanitizer:(none asan msan tsan)' \
|
|
||||||
'--target-os[Compile to a specific target operating system]:os:(android fuchsia ios linux macos windows)' \
|
|
||||||
'--target-arch[Compile to a specific target architecture]:arch:(arm arm64 ia32 risv32 riscv64 x64)' \
|
|
||||||
'--root-package=[Package for which hooks are run are outside the packages in packages argument]:name' \
|
|
||||||
'*: :_files' \
|
|
||||||
&& ret=0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
(( $+functions[_dart_compile] )) ||
|
(( $+functions[_dart_compile] )) ||
|
||||||
_dart_compile() {
|
_dart_compile() {
|
||||||
local ret=1
|
local ret=1
|
||||||
|
|
@ -602,13 +538,6 @@ _dart_pub_cache() {
|
||||||
'(-f --force)'{-f,--force}'[Do not ask for confirmation]'
|
'(-f --force)'{-f,--force}'[Do not ask for confirmation]'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
(gc)
|
|
||||||
opts+=(
|
|
||||||
'(-f --force)'{-f,--force}'[Prune cache without confirmation]'
|
|
||||||
'--collect-recent[Also delete recent files]'
|
|
||||||
'--dry-run[Print list of files that would be deleted]'
|
|
||||||
)
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
_arguments "$opts[@]" && ret=0
|
_arguments "$opts[@]" && ret=0
|
||||||
|
|
@ -624,7 +553,6 @@ _dart_pub_cache_subcommands() {
|
||||||
"add:Install a package"
|
"add:Install a package"
|
||||||
"clean:Clears the global PUB_CACHE"
|
"clean:Clears the global PUB_CACHE"
|
||||||
"repair:Reinstall cached packages"
|
"repair:Reinstall cached packages"
|
||||||
'gc:Prune unused packages from the system cache'
|
|
||||||
)
|
)
|
||||||
_describe -t commands 'command' commands "$@"
|
_describe -t commands 'command' commands "$@"
|
||||||
}
|
}
|
||||||
|
|
@ -777,25 +705,17 @@ _dart_test_reporter() {
|
||||||
(( $+functions[_dart_subcommands] )) ||
|
(( $+functions[_dart_subcommands] )) ||
|
||||||
_dart_subcommands() {
|
_dart_subcommands() {
|
||||||
local -a commands=(
|
local -a commands=(
|
||||||
# global
|
"analyze:Analyze Dart code in a directory"
|
||||||
"install:Install or upgrade a Dart CLI tool for global use"
|
|
||||||
"installed:List globally installed Dart CLI tools"
|
|
||||||
"uninstall:Remove aglobally instaled Dart CLI tool"
|
|
||||||
# project
|
|
||||||
"build:Build a Dart application including code assets"
|
|
||||||
"compile:Compile Dart to various formats"
|
"compile:Compile Dart to various formats"
|
||||||
"create:Create a new Dart project"
|
"create:Create a new Dart project"
|
||||||
"pub:Work with packages"
|
"devtools:Open DevTools (optionally connecting to an existing application)"
|
||||||
"run:Run a Dart program"
|
|
||||||
"test:Run tests for a project"
|
|
||||||
# source code
|
|
||||||
"analyze:Analyze Dart code in a directory"
|
|
||||||
"doc:Generate API documentation for Dart projects"
|
"doc:Generate API documentation for Dart projects"
|
||||||
"fix:Apply automated fixes to Dart source code"
|
"fix:Apply automated fixes to Dart source code"
|
||||||
"format:Idiomatically format Dart source code"
|
"format:Idiomatically format Dart source code"
|
||||||
# tools
|
|
||||||
"devtools:Open DevTools (optionally connecting to an existing application)"
|
|
||||||
"info:Show diagnostic information about the installed tooling"
|
"info:Show diagnostic information about the installed tooling"
|
||||||
|
"pub:Work with packages"
|
||||||
|
"run:Run a Dart program"
|
||||||
|
"test:Run tests for a project"
|
||||||
)
|
)
|
||||||
_describe -t commands 'command' commands "$@"
|
_describe -t commands 'command' commands "$@"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for the Flutter.io sdk's cli tool 3.47.0 (https://flutter.dev)
|
# Completion script for the Flutter.io sdk's cli tool 3.41.1 (https://flutter.dev)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -150,13 +150,6 @@ _flutter() {
|
||||||
(build)
|
(build)
|
||||||
_flutter_build && ret=0
|
_flutter_build && ret=0
|
||||||
;;
|
;;
|
||||||
(clean)
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
|
||||||
'--scheme[When cleaning Xcode schemes, clean only the specified scheme]:scheme' \
|
|
||||||
'--include-example[Also clean the example directory]' \
|
|
||||||
&& ret=0
|
|
||||||
;;
|
|
||||||
(config)
|
(config)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
'(- *)'{-h,--help}'[Print this usage information]' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue