From 97402d4ab8110776bb69836d75672b2f46e9b03f Mon Sep 17 00:00:00 2001 From: Laurent Goussard Date: Thu, 17 Jul 2014 18:40:19 +0200 Subject: [PATCH] [Fix] awk regex for all php console based commands --- src/_artisan | 2 +- src/_composer | 2 +- src/_console | 2 +- src/_envoy | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/_artisan b/src/_artisan index 23c8e64..6e55d31 100644 --- a/src/_artisan +++ b/src/_artisan @@ -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 () { diff --git a/src/_composer b/src/_composer index 0b03204..76e1260 100644 --- a/src/_composer +++ b/src/_composer @@ -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 () { diff --git a/src/_console b/src/_console index 91e8b16..c74ed95 100644 --- a/src/_console +++ b/src/_console @@ -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 () { diff --git a/src/_envoy b/src/_envoy index e9ece6c..d82c9d4 100644 --- a/src/_envoy +++ b/src/_envoy @@ -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 () {