Merge pull request #245 from loranger/master

[Fix] awk regex for all php console based commands
This commit is contained in:
Mario Fernández 2014-08-20 17:45:32 +02:00
commit 8d3c8e6541
4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -44,7 +44,7 @@ local curcontext=$curcontext state line
declare -A opt_args declare -A opt_args
_composer_get_command_list () { _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 () { _composer_get_required_list () {

View File

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

View File

@ -40,15 +40,15 @@
_envoy_get_command_list () { _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_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_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 () { _envoy_get_task_list () {