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
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
_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 () {
+1 -1
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 () {
+1 -1
View File
@@ -40,7 +40,7 @@
_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 () {
+3 -3
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 () {