Merge pull request #1303 from tbhaxor/vuejs-completions

added vuejs completions
This commit is contained in:
Nils Winkler
2019-01-07 08:23:57 +01:00
committed by GitHub

View File

@@ -0,0 +1,15 @@
#!/usr/bin/bash
if command -v vue > /dev/null; then
__vuejs_completion() {
local OPTS=("--version --help create add invoke inspect serve build ui init config upgrade info")
COMPREPLY=()
for _opt_ in ${OPTS[@]}; do
if [[ "$_opt_" == "$2"* ]]; then
COMPREPLY+=("$_opt_")
fi
done
}
complete -F __vuejs_completion vue
fi