Add initial completion for Angular CLI (#8111)

* Add initial completion for Angular CLI

* Remove completion for `ng completion`

The `ng completion` doesn't exist. The completiond were autogenerated
using a script. See angular/angular-cli#21085

* Use shorter wording

* Fix typos
This commit is contained in:
YAKSH BARIYA 2021-07-11 12:55:04 +05:30 committed by GitHub
parent 44463f459f
commit 46ae46b54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
share/completions/ng.fish Normal file
View File

@ -0,0 +1,20 @@
complete -c ng -f -d "The Angular CLI"
complete -c ng -n __fish_use_subcommand -a "add" -d "Add dependency"
complete -c ng -n __fish_use_subcommand -a "analytics" -d "Configure analytics"
complete -c ng -n __fish_use_subcommand -a "build" -d "Compile Angular app"
complete -c ng -n __fish_use_subcommand -a "config" -d "get/set config vars"
complete -c ng -n __fish_use_subcommand -a "deploy" -d "Deploy builder"
complete -c ng -n __fish_use_subcommand -a "doc" -d "Search documentation"
complete -c ng -n __fish_use_subcommand -a "e2e" -d "Run e2e tests"
complete -c ng -n __fish_use_subcommand -a "extract-i18n" -d "Extracts i18n"
complete -c ng -n __fish_use_subcommand -a "make-this-awesome" -d ""
complete -c ng -n __fish_use_subcommand -a "generate" -d "Create <schematic>"
complete -c ng -n __fish_use_subcommand -a "help" -d "Display help"
complete -c ng -n __fish_use_subcommand -a "lint" -d "Run linter"
complete -c ng -n __fish_use_subcommand -a "new" -d "New workspace"
complete -c ng -n __fish_use_subcommand -a "run" -d "Run Architect"
complete -c ng -n __fish_use_subcommand -a "serve" -d "Start dev server"
complete -c ng -n __fish_use_subcommand -a "test" -d "Run unit tests"
complete -c ng -n __fish_use_subcommand -a "update" -d "Update deps"
complete -c ng -n __fish_use_subcommand -a "version" -d "Display version"