bower: add login
Ref: https://github.com/zsh-users/zsh-completions/pull/332#issuecomment-125086483
This commit is contained in:
parent
665e2f29ce
commit
11215f13c9
|
@ -32,6 +32,7 @@ case $state in
|
||||||
"install[Install a package locally]" \
|
"install[Install a package locally]" \
|
||||||
"link[Symlink a package folder]" \
|
"link[Symlink a package folder]" \
|
||||||
"list[List local packages - and possible updates]" \
|
"list[List local packages - and possible updates]" \
|
||||||
|
"login[Authenticate with GitHub and store credentials]" \
|
||||||
"lookup[Look up a package URL by name]" \
|
"lookup[Look up a package URL by name]" \
|
||||||
"prune[Removes local extraneous packages]" \
|
"prune[Removes local extraneous packages]" \
|
||||||
"register[Register a package]" \
|
"register[Register a package]" \
|
||||||
|
@ -64,6 +65,7 @@ case $state in
|
||||||
'install' \
|
'install' \
|
||||||
'link' \
|
'link' \
|
||||||
'list' \
|
'list' \
|
||||||
|
'login' \
|
||||||
'lookup' \
|
'lookup' \
|
||||||
'prune' \
|
'prune' \
|
||||||
'register' \
|
'register' \
|
||||||
|
@ -95,6 +97,12 @@ case $state in
|
||||||
'(--relative)--relative[Make paths relative to the directory config property, which defaults to bower_components]'
|
'(--relative)--relative[Make paths relative to the directory config property, which defaults to bower_components]'
|
||||||
ret=0
|
ret=0
|
||||||
;;
|
;;
|
||||||
|
login)
|
||||||
|
_arguments \
|
||||||
|
'(--help)--help[Show help message]' \
|
||||||
|
'(-t --token)'{-t,--token}'[Pass GitHub auth token (will not prompt for username/password)]'
|
||||||
|
ret=0
|
||||||
|
;;
|
||||||
uninstall)
|
uninstall)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--help)--help[Show help message]' \
|
'(--help)--help[Show help message]' \
|
||||||
|
|
Loading…
Reference in New Issue