[Fix] awk regex for all php console based commands
This commit is contained in:
parent
03869b1157
commit
97402d4ab8
|
@ -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 () {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue