symfony console completion should also work with php app/console
This commit is contained in:
parent
c2dde89fb3
commit
a63bcd1bf4
|
@ -39,6 +39,10 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
_app_console_get_command_list () {
|
||||||
|
php app/console --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
|
||||||
|
}
|
||||||
|
|
||||||
_console_get_command_list () {
|
_console_get_command_list () {
|
||||||
php console --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
|
php console --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
|
||||||
}
|
}
|
||||||
|
@ -46,8 +50,11 @@ _console_get_command_list () {
|
||||||
_console () {
|
_console () {
|
||||||
if [ -f console ]; then
|
if [ -f console ]; then
|
||||||
compadd `_console_get_command_list`
|
compadd `_console_get_command_list`
|
||||||
|
elif [ -f app/console ]; then
|
||||||
|
compadd `_app_console_get_command_list`
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compdef _console php app/console
|
||||||
compdef _console php console
|
compdef _console php console
|
||||||
compdef _console console
|
compdef _console console
|
||||||
|
|
Loading…
Reference in New Issue