10000 chore(completion): ng completion update for command options (#2379) · jasonruesch/angular-cli@2aab381 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2aab381

Browse files
catullhansl
authored andcommitted
chore(completion): ng completion update for command options (angular#2379)
* Updated ng command options. - "build" now additionally supports --base-hre / -bh, -w - "generate" got cleaned up - "github-pages:deploy" / "gh-pages:deploy" now is supported, too - "init" now knows --routing and --source-dir - "new" also accepts --routing - "serve" dumped --insecure-proxy, --inspr, --output-path, -op, -out and -pxy - "test" now honours --build and --reporters, dumped --config-file, --environment, --filter, --host, --launch, --module, path, --query, reporter, --server, --silent, --test-page and --test-port * Added --aot for "build" and "serve". * Recent the commands "init" and "new" received two more options: "--inline-stile" (alias -is) and "inline-template" (alias -it). Support the, both. * Recently the commands "init" and "new" dropped --blueprint (alias -b).
1 parent 32e60b7 commit 2aab381

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/angular-cli/utilities/completion.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
ng_opts='b build completion 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'
99

10-
build_opts='--environment --output-path --suppress-sizes --target --watch --watcher -dev -e -prod'
11-
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'
12-
github_pages_deploy_opts='--environment --gh-token --gh-username --skip-build --user-page --message'
10+
build_opts='--aot --base-href --environment --output-path --suppress-sizes --target --watch --watcher -bh -dev -e -o -prod -t -w'
11+
generate_opts='class component directive enum module pipe route service c cl d e m p r s --help'
12+
github_pages_deploy_opts='--base-href --environment --gh-token --gh-username --message --skip-build --target --user-page -bh -e -t'
1313
help_opts='--json --verbose -v'
14-
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'
15-
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'
16-
serve_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'
14+
init_opts='--dry-run inline-style inline-template --link-cli --mobile --name --prefix --routing --skip-bower --skip-npm --source-dir --style --verbose -d -is -it -lc -n -p -sb -sd -sn -v'
15+
new_opts='--directory --dry-run inline-style inline-template --link-cli --mobile --prefix --routing --skip-bower --skip-git --skip-npm --source-dir --style --verbose -d -dir -is -it -lc -p -sb -sd -sg -sn -v'
16+
serve_opts='--aot --environment --host --live-reload --live-reload-base-url --live-reload-host --live-reload-live-css --live-reload-port --port --proxy-config --ssl --ssl-cert --ssl-key --target --watcher -H -e -lr -lrbu -lrh -lrp -p -pc -t -w'
1717
set_opts='--global -g'
18-
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'
18+
test_opts='--browsers --build --colors --log-level --port --reporters --watch -w'
1919
version_opts='--verbose'
2020

2121
if type complete &>/dev/null; then
@@ -30,6 +30,7 @@ if type complete &>/dev/null; then
3030
ng) opts=$ng_opts ;;
3131
b|build) opts=$build_opts ;;
3232
g|generate) opts=$generate_opts ;;
33+
gh-pages:deploy|github-pages:deploy) opts=$github_pages_deploy_opts
3334
h|help|-h|--help) opts=$help_opts ;;
3435
init) opts=$init_opts ;;
3536
new) opts=$new_opts ;;
@@ -57,6 +58,7 @@ elif type compctl &>/dev/null; then
5758
ng) opts=$ng_opts ;;
5859
b|build) opts=$build_opts ;;
5960
g|generate) opts=$generate_opts ;;
61+
gh-pages:deploy|github-pages:deploy) opts=$github_pages_deploy_opts
6062
h|help|-h|--help) opts=$help_opts ;;
6163
init) opts=$init_opts ;;
6264
new) opts=$new_opts ;;
@@ -75,4 +77,4 @@ elif type compctl &>/dev/null; then
7577
compctl -K _ng_completion ng
7678
fi
7779

78-
###-end-ng-completion###
80+
###-end-ng-completion###

0 commit comments

Comments
 (0)
0