Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
bd599066
Commit
bd599066
authored
Aug 12, 2016
by
Carlo Dapor
Committed by
Marc Cornellà
Sep 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added angular-cli (ng) completion.
parent
8f07e26b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
ng.plugin.zsh
plugins/ng/ng.plugin.zsh
+73
-0
No files found.
plugins/ng/ng.plugin.zsh
0 → 100644
View file @
bd599066
ng_opts
=
'addon asset-sizes b build completion d destroy doc e2e g generate get h help i init install lint make-this-awesome new s serve server set t test 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'
;;
i
|
install
)
opts
=
''
;;
b
|
build
)
opts
=
'--environment --output-path --suppress-sizes --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
=
'component directive pipe route service --generate -d --dry-run --verbose -v --pod -p --classic -c --dummy -dum -id --in-repo --in-repo-addon -ir'
;;
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-host --live-reload-port --output-path --port --proxy --ssl --ssl-cert --ssl-key --watcher -H -dev -e -lr -lrbu -lrh -lrp -op -out -p -pr -prod -pxy -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'
;;
v
|
version
)
opts
=
'--verbose'
;;
ng
|
*
)
opts
=
$ng_opts
;;
esac
setopt shwordsplit
reply
=(
$opts
)
unset
shwordsplit
}
compctl
-K
_ng_completion ng
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment