Merge pull request #245 from loranger/master
[Fix] awk regex for all php console based commands
This commit is contained in:
commit
8d3c8e6541
|
@ -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 () {
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue