foreach: ajout de --cc

This commit is contained in:
Jephté Clain 2019-05-27 10:00:33 +04:00
parent 7e26ae1e0c
commit 8c143e16c3
1 changed files with 9 additions and 1 deletions

10
foreach
View File

@ -85,7 +85,9 @@ OPTIONS
Equivalent à '--ptitle -p */.git --' e.g '$scriptname -G git pull' pour Equivalent à '--ptitle -p */.git --' e.g '$scriptname -G git pull' pour
mettre à jour les dépôts situés dans un répertoire mettre à jour les dépôts situés dans un répertoire
-C, --composer-projects -C, --composer-projects
Equivalent à '--ptitle -p */composer.json --'" Equivalent à '--ptitle -p */composer.json --'
--cc, --composer-cmd
Equivalent à '--ptitle -p */composer.phar -- ./composer.phar'"
} }
basedir= basedir=
@ -111,6 +113,7 @@ args=(+
--nt, --no-title title= --nt, --no-title title=
-G,--git-projects shortcut=git -G,--git-projects shortcut=git
-C,--composer-projects shortcut=composer -C,--composer-projects shortcut=composer
--cc,--composer-cmd shortcut=composer-cmd
) )
parse_args "$@"; set -- "${args[@]}" parse_args "$@"; set -- "${args[@]}"
@ -125,6 +128,11 @@ composer)
parentdir=1 parentdir=1
[ "$title" == auto ] && title=p [ "$title" == auto ] && title=p
;; ;;
composer-cmd)
set -- */composer.phar -- ./composer.phar "$@"
parentdir=1
[ "$title" == auto ] && title=p
;;
esac esac
if [ "$match" == auto ]; then if [ "$match" == auto ]; then