Skip to content

Commit

Permalink
add auto completion on ng update (ohmyzsh#7244)
Browse files Browse the repository at this point in the history
add new option update and add all the options for ng update
  • Loading branch information
lakinduakash authored and lewg committed Oct 28, 2019
1 parent bbdb7b5 commit f5b57aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/ng/ng.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

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
Expand Down Expand Up @@ -55,6 +55,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'
Expand Down

0 comments on commit f5b57aa

Please sign in to comment.