diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2023-11-20 11:47:46 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2023-11-20 11:47:46 +0900 |
| commit | 719d72d025f89fff906ba359a9810c7045b08f0a (patch) | |
| tree | 3f1d25b584f7f48cf24d5021b41e3891ee89c1c1 /src/_dart | |
| parent | Merge pull request #1058 from zsh-users/update-node (diff) | |
| download | zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar.gz zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar.bz2 zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar.lz zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar.xz zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.tar.zst zsh-completions-719d72d025f89fff906ba359a9810c7045b08f0a.zip | |
Update flutter and dart completion for flutter 3.16.0
Diffstat (limited to 'src/_dart')
| -rw-r--r-- | src/_dart | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -24,7 +24,7 @@ # Description # ----------- # -# Completion script for dart 3.1.0 (https://dart.dev/) +# Completion script for dart 3.2.0 (https://dart.dev/) # # ------------------------------------------------------------------------------ # Authors @@ -119,7 +119,22 @@ _dart() { '(- *)'{-h,--help}'[Print this usage information]' \ '(-v --verbose)'{-v,--verbose}'[Show all options and flags with --help]' \ '(-o --output)'{-o,--output}'[Set where to write formatted output]:format:_dart_format_output' \ + '--show[Set which filenames to print]:show type:(all changed none)' \ + '--summary[Show the specified summary after formatting]:summary type:(line none profile)' \ '--set-exit-if-changed[Return exit code 1 if there are any formatting changes]' \ + '--fix[Apply all style fixes]' \ + '--fix-doc-comments[Use triple slash for documentation comments]' \ + '--fix-function-typedefs[Use new syntax for function type typedefs]' \ + '--fix-named-default-separator[Use "=" as the separator before named parameter default values]' \ + '--fix-optional-const[Remove "const" keyword inside constant context]' \ + '--fix-optional-new[Remove "new" keyword]' \ + '--fix-single-cascade-statements[Remove unnecessary single cascades from expression statements]' \ + '(-i --indent)'{-i,--indent}'[Add this many spaces of leading indentation]' \ + '--follow-links[Follow links to files and directories]' \ + '(- *)--version[Show dart_style version]' \ + '--enable-experiment[Enable one or more experimental features]:features' \ + '--selection[Track selection through formatting]:selection' \ + '--stdin-name[Use this path in error messages when input is read from stdin]:name' \ '*:file_or_directory:_files' \ && ret=0 ;; @@ -144,7 +159,7 @@ _dart() { '(--serve-devtools --no-serve-devtools)--no-serve-devtools[Do not serve an instance of the Dart DevTools debugger and profiler]' \ '--pause-isolates-on-exit[Pause isolates on exit when running with --enable-vm-service]' \ '--pause-isolates-on-unhandled-exceptions[Pause isolates when an unhandled exception is encountered when running with --enable-vm-service]' \ - '--warn-on-pause-with-no-debugger[Print a warning when an isolate pauses with no attached debugger when runnin with --enable-vm-service]' \ + '--warn-on-pause-with-no-debugger[Print a warning when an isolate pauses with no attached debugger when running with --enable-vm-service]' \ '--timeline-streams=[Enables recording for specific timeline streams]:stream:_dart_run_timeline_streams' \ '--pause-isolates-on-start[Pause isolates on start when running with --enable-vm-service]' \ '(--enable-asserts --no-enable-asserts)--enable-asserts[Enable assert statements]' \ @@ -152,6 +167,7 @@ _dart() { '--timeline-recorder=[Selects the timeline recorder to use]:recorder:(none ring endless startup systrace file callback)' \ '--verbosity[Sets the verbosity level of the compilation]:level:(all error info warning)' \ '*'{-d,--define=}'[Define an environment declaration]:key_value:' \ + '--enable-experiment=[Enable one or more experimental features]:features:_dart_run_enable_experiment' \ '*: :_files' \ && ret=0 ;; @@ -544,6 +560,15 @@ _dart_run_timeline_streams() { _values -s ',' streams $streams } +(( $+functions[_dart_run_enable_experiment] )) || +_dart_run_enable_experiment() { + local -a features=( + class-modifiers const-functions inference-update-2 inline-class + macros native-asserts patterns records sealed-class test-experiment variance + ) + _values -s ',' features $features +} + (( $+functions[_dart_test_reporter] )) || _dart_test_reporter() { local -a reporters=( |
