From 345db77abf108541926ec2f248e8fc7f0d9d40e6 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Thu, 13 Aug 2026 09:39:12 +0900 Subject: [PATCH 1/2] update dart completion to version 3.13.0 --- src/_dart | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 87 insertions(+), 7 deletions(-) diff --git a/src/_dart b/src/_dart index 83761f5..86854a4 100644 --- a/src/_dart +++ b/src/_dart @@ -24,7 +24,7 @@ # Description # ----------- # -# Completion script for dart 3.12.0 (https://dart.dev/) +# Completion script for dart 3.13.0 (https://dart.dev/) # # ------------------------------------------------------------------------------ # Authors @@ -60,6 +60,26 @@ _dart() { '1: :_dart_subcommands' \ && 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) _arguments \ '(- *)'{-h,--help}'[Print this usage information]' \ @@ -69,6 +89,9 @@ _dart() { '*: :_files -/' \ && ret=0 ;; + (build) + _dart_build && ret=0 + ;; (compile) _dart_compile && ret=0 ;; @@ -188,6 +211,47 @@ _dart() { 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 /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] )) || _dart_compile() { local ret=1 @@ -538,6 +602,13 @@ _dart_pub_cache() { '(-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 _arguments "$opts[@]" && ret=0 @@ -553,6 +624,7 @@ _dart_pub_cache_subcommands() { "add:Install a package" "clean:Clears the global PUB_CACHE" "repair:Reinstall cached packages" + 'gc:Prune unused packages from the system cache' ) _describe -t commands 'command' commands "$@" } @@ -705,17 +777,25 @@ _dart_test_reporter() { (( $+functions[_dart_subcommands] )) || _dart_subcommands() { local -a commands=( - "analyze:Analyze Dart code in a directory" + # global + "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" "create:Create a new Dart project" - "devtools:Open DevTools (optionally connecting to an existing application)" - "doc:Generate API documentation for Dart projects" - "fix:Apply automated fixes to Dart source code" - "format:Idiomatically format Dart source code" - "info:Show diagnostic information about the installed tooling" "pub:Work with packages" "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" + "fix:Apply automated fixes to 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" ) _describe -t commands 'command' commands "$@" } From d2c25c7d0f63f203fc3f71897dffc47e364fb79a Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Thu, 13 Aug 2026 09:45:46 +0900 Subject: [PATCH 2/2] update flutter completion to version 3.47.0 --- src/_flutter | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/_flutter b/src/_flutter index dffd794..cf22a9b 100644 --- a/src/_flutter +++ b/src/_flutter @@ -25,7 +25,7 @@ # Description # ----------- # -# Completion script for the Flutter.io sdk's cli tool 3.41.1 (https://flutter.dev) +# Completion script for the Flutter.io sdk's cli tool 3.47.0 (https://flutter.dev) # # ------------------------------------------------------------------------------ # Authors @@ -150,6 +150,13 @@ _flutter() { (build) _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) _arguments \ '(- *)'{-h,--help}'[Print this usage information]' \