diff options
author | Marvin Borner | 2020-03-16 23:33:42 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-16 23:33:42 +0100 |
commit | 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch) | |
tree | 719da1c7fe5dabb872fe9ff1582c39b55ccd488e /.oh-my-zsh/plugins/ng | |
parent | e5d38956336ab1be954bdbd12808c5f98f8bd925 (diff) |
Well I'm using Arch again
Diffstat (limited to '.oh-my-zsh/plugins/ng')
-rw-r--r-- | .oh-my-zsh/plugins/ng/README.md | 37 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/ng/ng.plugin.zsh | 81 |
2 files changed, 0 insertions, 118 deletions
diff --git a/.oh-my-zsh/plugins/ng/README.md b/.oh-my-zsh/plugins/ng/README.md deleted file mode 100644 index 86ad640..0000000 --- a/.oh-my-zsh/plugins/ng/README.md +++ /dev/null @@ -1,37 +0,0 @@ -## NG Plugin - -This [ng plugin](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/ng) - adds completion support for Angular's CLI (named ng). - -Ng is hosted on [ng home](https://github.com/catull/angular-cli) - -It is used to generate Angular 2 app "stubs", build those apps, configure them, -test them, lint them etc. - -Ahem, "stubs" is not what Angular engineers refer to the items ng can generate -for you. - -"Stubs" can be any one of: -- class -- component -- directive -- enum -- module -- pipe -- route -- service - -At the moment, `ng completion` creates a very rough completion for Zsh and -Bash. - -It is missing most of the options and a few arguments. -In future, this plugin may be shortened to simply being - -```zsh -eval `ng completion` -``` - -There is hope this materialises in the 21st century. - -### CONTRIBUTOR - - Carlo Dapor ([catull](https://github.com/catull)) diff --git a/.oh-my-zsh/plugins/ng/ng.plugin.zsh b/.oh-my-zsh/plugins/ng/ng.plugin.zsh deleted file mode 100644 index b802bf6..0000000 --- a/.oh-my-zsh/plugins/ng/ng.plugin.zsh +++ /dev/null @@ -1,81 +0,0 @@ - -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 - read -Ac words - read -cn cword - let cword-=1 - - case $words[cword] in - addon ) - opts='-b --blueprint -d -dir --directory --dry-run -sb --skip-bower -sg --skip-git -sn --skip-npm -v --verbose' - ;; - - asset-sizes ) - opts='-o --output-path' - ;; - - b | build ) - opts='--environment --output-path --suppress-sizes --target --watch --watcher -dev -e -prod' - ;; - - d | destroy ) - opts='--dry-run --verbose --pod --classic --dummy --in-repo --in-repo-addon -d -v -p -c -dum -id -ir' - ;; - - g | generate ) - opts='class component directive enum module pipe route service --generate -d --dry-run --verbose -v --pod -p --classic -c --dummy -dum -id --in-repo --in-repo-addon -ir' - ;; - - gh-pages:deploy | github-pages:deploy ) - opts='--environment --gh-token --gh-username --skip-build --user-page --message' - ;; - - h | help | -h | --help) - opts='--json --verbose -v' - ;; - - init ) - opts='--blueprint --dry-run --link-cli --mobile --name --prefix --skip-bower --skip-npm --source-dir --style --verbose -b -d -lc -n -p -sb -sd -sn -v' - ;; - - new ) - opts='--blueprint --directory --dry-run --link-cli --mobile --prefix --skip-bower --skip-git --skip-npm --source-dir --style --verbose -b -d -dir -lc -p -sb -sd -sg -sn -v' - ;; - - s | serve | server ) - opts='--environment --host --insecure-proxy --inspr --live-reload --live-reload-base-url --live-reload-host --live-reload-live-css --live-reload-port --output-path --port --proxy --ssl --ssl-cert --ssl-key --target --watcher -H -dev -e -lr -lrbu -lrh -lrp -op -out -p -pr -prod -pxy -t -w' - ;; - - set ) - opts='--global -g' - ;; - - 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' - ;; - - ng ) - opts=$ng_opts - ;; - - * ) - opts='' - ;; - esac - - setopt shwordsplit - reply=($opts) - unset shwordsplit -} - -compctl -K _ng_completion ng |