summaryrefslogtreecommitdiff
path: root/plugins/ng/ng.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ng/ng.plugin.zsh')
-rw-r--r--plugins/ng/ng.plugin.zsh11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/ng/ng.plugin.zsh b/plugins/ng/ng.plugin.zsh
index 2488bc230..44102e2a6 100644
--- a/plugins/ng/ng.plugin.zsh
+++ b/plugins/ng/ng.plugin.zsh
@@ -1,5 +1,4 @@
-
-ng_opts='addon asset-sizes b build completion d destroy doc e2e g generate get github-pages:deploy gh-pages:deploy h help i init install lint make-this-awesome new s serve server set t test v version -h --help'
+ng_opts='addon asset-sizes b build completion d destroy doc e2e g generate get github-pages:deploy gh-pages:deploy h help i init install lint make-this-awesome new s serve server set t test update v version -h --help'
_ng_completion () {
local words cword opts
@@ -55,6 +54,10 @@ _ng_completion () {
t | test )
opts='--browsers --colors --config-file --environment --filter --host --launch --log-level --module --path --port --query --reporter --server --silent --test-page --test-port --watch -H -c -cf -e -f -m -r -s -tp -w'
;;
+
+ update )
+ opts='--all --dryRun --force --from --migrate-only --next --registry --to -d'
+ ;;
v | version )
opts='--verbose'
@@ -69,9 +72,7 @@ _ng_completion () {
;;
esac
- setopt shwordsplit
- reply=($opts)
- unset shwordsplit
+ reply=(${=opts})
}
compctl -K _ng_completion ng