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