aboutsummaryrefslogtreecommitdiffstats
path: root/src/_bower
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2015-07-28 20:29:22 +0200
committerDaniel Hahler <git@thequod.de>2015-07-28 20:29:22 +0200
commit11215f13c9ea7f9a7ad297bf7ee72f8385630870 (patch)
tree114a3837f5614506cf1099c13d35db2fe9cdb6f0 /src/_bower
parentbower: add unregister, --version, --no-color (diff)
downloadzsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar.gz
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar.bz2
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar.lz
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar.xz
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.tar.zst
zsh-completions-11215f13c9ea7f9a7ad297bf7ee72f8385630870.zip
bower: add login
Ref: https://github.com/zsh-users/zsh-completions/pull/332#issuecomment-125086483
Diffstat (limited to 'src/_bower')
-rw-r--r--src/_bower8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/_bower b/src/_bower
index af04a6b..303b976 100644
--- a/src/_bower
+++ b/src/_bower
@@ -32,6 +32,7 @@ case $state in
"install[Install a package locally]" \
"link[Symlink a package folder]" \
"list[List local packages - and possible updates]" \
+ "login[Authenticate with GitHub and store credentials]" \
"lookup[Look up a package URL by name]" \
"prune[Removes local extraneous packages]" \
"register[Register a package]" \
@@ -64,6 +65,7 @@ case $state in
'install' \
'link' \
'list' \
+ 'login' \
'lookup' \
'prune' \
'register' \
@@ -95,6 +97,12 @@ case $state in
'(--relative)--relative[Make paths relative to the directory config property, which defaults to bower_components]'
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)
_arguments \
'(--help)--help[Show help message]' \