Merge pull request #754 from kamleshkc2002/flutter

Update new completions for Flutter
This commit is contained in:
Shohei YOSHIDA 2020-07-21 11:58:34 +09:00 committed by GitHub
commit c6621bb692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 2 deletions

View File

@ -86,6 +86,21 @@ _arguments -C -A "-*" \
'--no-preamble[When analyzing the flutter repository, display the number of files that will be analyzed. (defaults to on)]' \ '--no-preamble[When analyzing the flutter repository, display the number of files that will be analyzed. (defaults to on)]' \
&& ret=0 && ret=0
;; ;;
(assemble)
_arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0
;;
(attach)
_arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0
;;
(bash-completion)
_arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0
;;
(build) (build)
_arguments -C \ _arguments -C \
'1: :_build_entities' \ '1: :_build_entities' \
@ -169,6 +184,11 @@ _arguments -C -A "-*" \
'--no-preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \ '--no-preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \
&& ret=0 && ret=0
;; ;;
(emulators)
_arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0
;;
(format) (format)
_arguments -C \ _arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \ '(-h --help)'{-h,--help}'[Print this usage information.]' \
@ -340,7 +360,11 @@ _arguments -C -A "-*" \
'(-h --help)'{-h,--help}'[Print this usage information.]' \ '(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0 && ret=0
;; ;;
(version)
_arguments -C \
'(-h --help)'{-h,--help}'[Print this usage information.]' \
&& ret=0
;;
esac esac
;; ;;
esac esac
@ -356,6 +380,9 @@ _root_commands() {
local commands; local commands;
commands=( commands=(
"analyze:Analyze the project's Dart code." "analyze:Analyze the project's Dart code."
'assemble:Assemble and build flutter resources.'
'attach:Attach to a running application.'
'bash-completion:Output command line shell completion setup scripts.'
'build:Flutter build commands.' 'build:Flutter build commands.'
'channel:List or switch flutter channels.' 'channel:List or switch flutter channels.'
'clean:Delete the build/ directory.' 'clean:Delete the build/ directory.'
@ -365,6 +392,7 @@ _root_commands() {
'devices:List all connected devices.' 'devices:List all connected devices.'
'doctor:Show information about the installed tooling.' 'doctor:Show information about the installed tooling.'
'drive:Runs Flutter Driver tests for the current project.' 'drive:Runs Flutter Driver tests for the current project.'
'emulators:List, launch and create emulators.'
'format:Format one or more dart files.' 'format:Format one or more dart files.'
'fuchsia_reload:Hot reload on Fuchsia.' 'fuchsia_reload:Hot reload on Fuchsia.'
'help:Display help information for flutter.' 'help:Display help information for flutter.'
@ -380,7 +408,8 @@ _root_commands() {
'test:Run Flutter unit tests for the current project.' 'test:Run Flutter unit tests for the current project.'
'trace:Start and stop tracing for a running Flutter app.' 'trace:Start and stop tracing for a running Flutter app.'
'update-packages:Update the packages inside the Flutter repo.' 'update-packages:Update the packages inside the Flutter repo.'
'upgrade:Upgrade your copy of Flutter.') 'upgrade:Upgrade your copy of Flutter.'
'version:List or switch flutter versions.')
_describe -t commands 'command' commands "$@" _describe -t commands 'command' commands "$@"
} }