-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This file is part of the Phalcon Framework. | ||
# | ||
# (c) Phalcon Team <[email protected]> | ||
# | ||
# 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 | ||
#!/usr/bin/env bash | ||
# | ||
# This file is part of the Phalcon Framework. | ||
# | ||
# (c) Phalcon Team <[email protected]> | ||
# | ||
# 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 |