Skip to content

Commit 2f95126

Browse files
authoredMar 18, 2024
Merge pull request zsh-users#1074 from zsh-users/update-flutter-completion
Update flatter completion to 3.19.3
2 parents 507f1f8 + c1f23cc commit 2f95126

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed
 

‎src/_flutter

+18-16
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Description
2626
# -----------
2727
#
28-
# Completion script for the Flutter.io sdk's cli tool 3.16.0 (https://flutter.dev)
28+
# Completion script for the Flutter.io sdk's cli tool 3.19.3 (https://flutter.dev)
2929
#
3030
# ------------------------------------------------------------------------------
3131
# Authors
@@ -58,9 +58,9 @@ _flutter() {
5858
'(--color --no-color)--no-color[Whether to use terminal colors]' \
5959
'(--no-version-check --version-check)--version-check[Allow Flutter to check for updates when this command runs]' \
6060
'(--version-check --no-version-check)--no-version-check[Not allow Flutter to check for updates when this command runs]' \
61-
'--suppress-analytics[Suppress analytics reporting when this command runs]' \
62-
'(--enable-telemetry)--disable-telemetry[Disable telemetry reporting each time a flutter command runs]' \
63-
'(--disable-telemetry)--enable-telemetry[Enable telemetry reporting each time a flutter command runs]' \
61+
'(--enable-analytics --disable-analytics --suppress-analytics)--disable-analytics[Disable telemetry reporting each time a flutter command runs]' \
62+
'(--enable-analytics --disable-analytics --suppress-analytics)--enable-analytics[Enable telemetry reporting each time a flutter command runs]' \
63+
'(--enable-analytics --disable-analytics --suppress-analytics)--suppress-analytics[Suppress analytics reporting when this command runs]' \
6464
'--packages[Path to your ".packages" file. (required, since the current directory does not contain a ".packages" file)]' \
6565
'--local-engine-src-path=[Path to your engine src directory]: :_path_files -/' \
6666
'--local-engine=[Specific version of the engine]:version' \
@@ -126,8 +126,6 @@ _flutter() {
126126
'*--dart-define=[Additional key-value pairs that will be available as constants]:' \
127127
'--dart-define-from-file=[The path of a json format file where flutter define a global constant pool]: :_files -g "*.json"' \
128128
'--device-user=[Identifier number for a user or work profile on Android only]:id:' \
129-
'--null-assertions[Perform additional null assertions on the boundaries of migrated and un-migrated code]' \
130-
'--no-null-assertions[Not perform additional null assertions on the boundaries of migrated and un-migrated code]' \
131129
'--debug-url=[The URL at which the observatory is listening]:url:' \
132130
'--app-id=[The package name (Android) or bundle identifier (iOS) for the app]:app_id:' \
133131
'--pid-file=[Specify a file to write the process id to]: :_files' \
@@ -151,8 +149,7 @@ _flutter() {
151149
(config)
152150
_arguments \
153151
'(-h --help)'{-h,--help}'[Print this usage information]' \
154-
'--analytics[Enable or disable reporting anonymously tool usage statistics and crash reports]' \
155-
'--no-analytics[Enable or disable reporting anonymously tool usage statistics and crash reports]' \
152+
'--list[List all settings and their current values]' \
156153
'--clear-ios-signing-cert[Clear the saved development certificate choice used to sign apps for iOS device deployment]' \
157154
'--android-sdk=[The Android SDK directory]: :_path_files -/' \
158155
'--android-studio-dir=[The Android Studio install directory]: :_path_files -/' \
@@ -179,7 +176,6 @@ _flutter() {
179176
'--clear-features[Remove all configured features and restore them to the default values]' \
180177
&& ret=0
181178
;;
182-
183179
(create)
184180
_arguments \
185181
'(- *)'{-h,--help}'[Print this usage information]' \
@@ -242,6 +238,7 @@ _flutter() {
242238
'--flavor[Build a custom app flavor as defined by platform-specific build setup]:flavor' \
243239
'--web-renderer=[The renderer implementation to use when building for the web]: :_flutter_web_renderers' \
244240
'--no-web-resources-cdn[Do not use Web static resources hosted on a CDN]' \
241+
'--use-application-binary=[Specify a pre-built application binary to use when running]:app:_files -g "*.apk"' \
245242
'--trace-startup[Start tracing during startup]' \
246243
'(--cache-startup-profile --no-cache-startup-profile)--cache-startup-profile[Caches the CPU profile collected before the first frame for startup analysis]' \
247244
'(--cache-startup-profile --no-cache-startup-profile)--no-cache-startup-profile[Not caches the CPU profile collected before the first frame for startup analysis]' \
@@ -250,16 +247,17 @@ _flutter() {
250247
'--dump-skp-on-shader-compilation[Cache the shader in the SkSL format instead of in binary or GLSL formats]' \
251248
'--purge-persistent-cache[Removes all existing persistent caches]' \
252249
'--route[Which route to load when running the app]' \
253-
'--use-application-binary=[Specify a pre-built application binary to use when running]::_files -g "*.apk"' \
254250
'(--no-start-paused --start-paused)--start-paused[Start in a paused mode and wait for a debugger to connect]' \
255251
'(--no-start-paused --start-paused)--no-start-paused[Not tart in a paused mode and wait for a debugger to connect]' \
256252
'--endless-trace-buffer[Enable tracing to an infinite buffer, instead of a ring buffer]' \
257253
'--trace-systrace[Enable tracing to the system tracer]' \
254+
'--trace-to-file=[Write the timeline trace to a file at the specified path]:file:_files' \
258255
'--trace-skia[Enable tracing of Skia code]' \
259256
'--no-enable-dart-profiling[Disable the Dart VM sampling CPU profiler]' \
260-
'--enable-software-rendering[Enable rendering using the Skia software backend]' \
261257
'--skia-deterministic-rendering[provide completely deterministic Skia rendering]' \
262258
*{-a,--dart-entrypoint-args=}'[Pass a list of arguments to the Dart entrypoint at application startup]: :' \
259+
'--web-tls-cert-path=[The certificate that host will use to serve using TLS connection]:cert:_files' \
260+
'--web-tls-cert-key-path=[The certificate key that host will use to authenticate cert]:key:_files' \
263261
'--web-launch-url=[The URL to provide to the browser]: :' \
264262
'(-t --target=)'{-t,--target=}'[The main entry-point file of the application, as run on the device.(defaults to "lib/main.dart")]: :_files -g "*.dart"' \
265263
'--device-vmservice-port=[Look for vmservice connections only from the specified port]:port:' \
@@ -330,6 +328,8 @@ _flutter() {
330328
'--format["dart format" is run after generating the localization files]' \
331329
'--use-escaping[use escaping for message]' \
332330
'--suppress-warnings[all warnings will be suppressed]' \
331+
'--relax-syntax[Use the relax syntax]' \
332+
'--use-named-parameter[Use named parameters for generated localization methods]' \
333333
&& ret=0
334334
;;
335335
(install)
@@ -407,6 +407,8 @@ _flutter() {
407407
'--enable-software-rendering[Enable rendering using the Skia software backend]' \
408408
'--skia-deterministic-rendering[When combined with --enable-software-rendering, provides 100% deterministic Skia rendering]' \
409409
*{-a,--dart-entrypoint-args=}'[Pass a list of arguments to the Dart entrypoint at application startup]: :' \
410+
'--web-tls-cert-path=[The certificate that host will use to serve using TLS connection]:cert:_files' \
411+
'--web-tls-cert-key-path=[The certificate key that host will use to authenticate cert]:key:_files' \
410412
'--web-launch-url=[The URL to provide to the browser]: :' \
411413
'(-t= --target=)'{-t=,--target=}'[The main entry-point file of the application, as run on the device.(defaults to "lib/main.dart")]: :_files -g "*.dart"' \
412414
'--device-vmservice-port=[Look for vmservice connections only from the specified port]:port:' \
@@ -436,7 +438,7 @@ _flutter() {
436438
'(- *)'{-h,--help}'[Print this usage information]' \
437439
'(-o --out)'{-o,--out=}'[Location to write the screenshot]: :_files' \
438440
'--vm-service-url=[The VM Service URL to which to connect]' \
439-
'--type=[The type of screenshot to retrieve]:type:(device rasterizer skia)' \
441+
'--type=[The type of screenshot to retrieve]:type:(device skia)' \
440442
'--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
441443
'--device-connection=[Discover devices based on connection type]:type:_flutter_device_connection_types' \
442444
&& ret=0
@@ -452,10 +454,10 @@ _flutter() {
452454
(test)
453455
_arguments \
454456
'(- *)'{-h,--help}'[Print this usage information]' \
455-
'--pub[Run "flutter packages get" before executing this command(defaults to on)]' \
456-
'--no-pub[Not to run "flutter packages get" before executing this command]' \
457-
'--track-widget-creation[Track widget creation locations]' \
458-
'--no-track-widget-creation[Not track widget creation locations]' \
457+
'(--pub --no-pub)--pub[Run "flutter packages get" before executing this command(defaults to on)]' \
458+
'(--pub --no-pub)--no-pub[Not to run "flutter packages get" before executing this command]' \
459+
'(--track-widget-creation --no-track-widget-creation)--track-widget-creation[Track widget creation locations]' \
460+
'(--track-widget-creation --no-track-widget-creation)--no-track-widget-creation[Not track widget creation locations]' \
459461
'*--dart-define=[Additional key-value pairs that will be available as constants]:' \
460462
'--dart-define-from-file=[The path of a json format file where flutter define a global constant pool]: :_files -g "*.json"' \
461463
'--web-renderer=[The renderer implementation to use when building for the web]: :_flutter_web_renderers' \

0 commit comments

Comments
 (0)
Please sign in to comment.