mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Support 'fvm dart' completion
This commit is contained in:
@@ -55,6 +55,14 @@ _fvm_run_flutter() {
|
||||
fi
|
||||
}
|
||||
|
||||
_fvm_run_dart() {
|
||||
local begin=$(($CURRENT - 1))
|
||||
if (( $+functions[_dart] )); then
|
||||
compset -n $begin
|
||||
_dart "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
_fvm() {
|
||||
typeset -A opt_args
|
||||
local context state line
|
||||
@@ -93,6 +101,12 @@ _fvm() {
|
||||
'(- *)'{-h,--help}'[Print this usage information]' \
|
||||
&& ret=0
|
||||
;;
|
||||
(dart)
|
||||
_arguments -C \
|
||||
'1: :_fvm_run_dart' \
|
||||
'*: :_normal' \
|
||||
&& ret=0
|
||||
;;
|
||||
(exec)
|
||||
_arguments -C \
|
||||
'*::args:_normal' \
|
||||
|
||||
Reference in New Issue
Block a user