forked from phalcon/phalcon-devtools
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphalcon-completion.bash
More file actions
29 lines (24 loc) · 817 Bytes
/
phalcon-completion.bash
File metadata and controls
29 lines (24 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <team@phalcon.io>
#
# For the full copyright and license information, please view the
# LICENSE.txt file that was distributed with this source code.
_phalcon()
{
local cur prev
_get_comp_words_by_ref -n = cur prev
commands="commands list enumerate controller create-controller model \
create-model all-models create-all-models project create-project scaffold \
create-scaffold migration create-migration webtools create-webtools"
case "$prev" in
project|create-project)
COMPREPLY=($(compgen -W "--name --webtools --directory --type --template-path --use-config-ini --trace --help --namespace" -- "$cur"))
return 0
;;
esac
COMPREPLY=($(compgen -W "$commands" -- "$cur"))
} &&
complete -F _phalcon phalcon