diff --git a/phalcon-completion.bash b/phalcon-completion.bash index e2e4593b2..891bf966c 100644 --- a/phalcon-completion.bash +++ b/phalcon-completion.bash @@ -1,29 +1,29 @@ -#!/usr/bin/env bash -# -# This file is part of the Phalcon Framework. -# -# (c) Phalcon Team -# -# 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 +# +# 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