[Fix] awk regex for all php console based commands

This commit is contained in:
Laurent Goussard 2014-07-17 18:40:19 +02:00
parent 03869b1157
commit 97402d4ab8
4 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@
_artisan_get_command_list () {
php artisan | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
php artisan | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
}
_artisan () {

View File

@ -44,7 +44,7 @@ local curcontext=$curcontext state line
declare -A opt_args
_composer_get_command_list () {
composer --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
composer --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
}
_composer_get_required_list () {

View File

@ -40,7 +40,7 @@
_console_get_command_list () {
php console | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
php console | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
}
_console () {

View File

@ -40,15 +40,15 @@
_envoy_get_command_list () {
envoy --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
envoy --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }'
}
_envoy_get_option_list () {
envoy --no-ansi | sed "1,/Options/d" | awk '/^ --[a-z]+/ { print $1 }'
envoy --no-ansi | sed "1,/Options/d" | awk '/ --[a-z]+/ { print $1 }'
}
_envoy_get_help_list () {
envoy help $1 --no-ansi | sed "1,/Options/d" | awk '/^ --[a-z]+/ { print $1 }'
envoy help $1 --no-ansi | sed "1,/Options/d" | awk '/ --[a-z]+/ { print $1 }'
}
_envoy_get_task_list () {