Merge pull request #332 from blueyed/bower-update
bower: add unregister, --version, --no-color
This commit is contained in:
commit
ea729a975b
18
src/_bower
18
src/_bower
|
@ -31,13 +31,15 @@ case $state in
|
||||||
"init[Interactively create a bower.json file]" \
|
"init[Interactively create a bower.json file]" \
|
||||||
"install[Install a package locally]" \
|
"install[Install a package locally]" \
|
||||||
"link[Symlink a package folder]" \
|
"link[Symlink a package folder]" \
|
||||||
"list[List local packages]" \
|
"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]" \
|
||||||
"search[Search for a package by name]" \
|
"search[Search for a package by name]" \
|
||||||
"update[Update a local package]" \
|
"update[Update a local package]" \
|
||||||
"uninstall[Remove a local package]" \
|
"uninstall[Remove a local package]" \
|
||||||
|
"unregister[Remove a package from the registry]" \
|
||||||
"version[Bump a package version]"
|
"version[Bump a package version]"
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--force)--force[Makes various commands more forceful]' \
|
'(--force)--force[Makes various commands more forceful]' \
|
||||||
|
@ -47,7 +49,9 @@ case $state in
|
||||||
'(--quiet)--quiet[Only output important information]' \
|
'(--quiet)--quiet[Only output important information]' \
|
||||||
'(--silent)--silent[Do not output anything, besides errors]' \
|
'(--silent)--silent[Do not output anything, besides errors]' \
|
||||||
'(--verbose)--verbose[Makes output more verbose]' \
|
'(--verbose)--verbose[Makes output more verbose]' \
|
||||||
'(--allow-root)--allow-root[Allows running commands as root]'
|
'(--allow-root)--allow-root[Allows running commands as root]' \
|
||||||
|
'(--version)--version[Output Bower version]' \
|
||||||
|
'(--no-color)--no-color[Disable colors]'
|
||||||
ret=0
|
ret=0
|
||||||
;;
|
;;
|
||||||
args)
|
args)
|
||||||
|
@ -61,16 +65,18 @@ case $state in
|
||||||
'install' \
|
'install' \
|
||||||
'link' \
|
'link' \
|
||||||
'list' \
|
'list' \
|
||||||
|
'login' \
|
||||||
'lookup' \
|
'lookup' \
|
||||||
'prune' \
|
'prune' \
|
||||||
'register' \
|
'register' \
|
||||||
'search' \
|
'search' \
|
||||||
'update' \
|
'update' \
|
||||||
'uninstall' \
|
'uninstall' \
|
||||||
|
'unregister' \
|
||||||
'version'
|
'version'
|
||||||
ret=0
|
ret=0
|
||||||
;;
|
;;
|
||||||
(home|info|init|link|lookup|prune|register|search)
|
(home|info|init|link|lookup|prune|register|search|unregister)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--help)--help[Show help message]'
|
'(--help)--help[Show help message]'
|
||||||
ret=0
|
ret=0
|
||||||
|
@ -91,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