From 8c143e16c3564d940889c547e65cb54766ea03d4 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 27 May 2019 10:00:33 +0400 Subject: [PATCH] foreach: ajout de --cc --- foreach | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/foreach b/foreach index b4b7e80..d8306a4 100755 --- a/foreach +++ b/foreach @@ -85,7 +85,9 @@ OPTIONS Equivalent à '--ptitle -p */.git --' e.g '$scriptname -G git pull' pour mettre à jour les dépôts situés dans un répertoire -C, --composer-projects - Equivalent à '--ptitle -p */composer.json --'" + Equivalent à '--ptitle -p */composer.json --' + --cc, --composer-cmd + Equivalent à '--ptitle -p */composer.phar -- ./composer.phar'" } basedir= @@ -111,6 +113,7 @@ args=(+ --nt, --no-title title= -G,--git-projects shortcut=git -C,--composer-projects shortcut=composer + --cc,--composer-cmd shortcut=composer-cmd ) parse_args "$@"; set -- "${args[@]}" @@ -125,6 +128,11 @@ composer) parentdir=1 [ "$title" == auto ] && title=p ;; +composer-cmd) + set -- */composer.phar -- ./composer.phar "$@" + parentdir=1 + [ "$title" == auto ] && title=p + ;; esac if [ "$match" == auto ]; then