Skip to content

Commit 60d3664

Browse files
committed
feat(tasks): add silent option to various tasks for cleaner output
1 parent 2e5fce4 commit 60d3664

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Taskfile.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ tasks:
4646
help:
4747
desc: "Affiche l'aide détaillée"
4848
aliases: [ h ]
49+
silent: true
4950
cmds:
5051
- task: default
5152

@@ -62,7 +63,7 @@ tasks:
6263
silent: true
6364
cmds:
6465
- rm -rf ./conf/apache2 || true
65-
- docker create --name symfony-php koromerzhin/php:8.4.3-apache-symfony
66+
- docker create --name symfony-php koromerzhin/php:8.4.3-apache-symfony
6667
- mkdir -p ./conf/apache2
6768
- docker cp symfony-php:/etc/apache2/sites-available/000-default.conf ./conf/apache2/000-default.conf
6869
- docker cp symfony-php:/etc/apache2/apache2.conf ./conf/apache2/apache2.conf
@@ -132,13 +133,15 @@ tasks:
132133

133134
create:apps:
134135
desc: "Crée un nouveau projet Symfony dans le dossier apps"
136+
silent: true
135137
cmds:
136138
- docker run --rm -v $(pwd):/var/www -w /var/www -e COMPOSER_MEMORY_LIMIT=512M -e HOME=/var/www --user $(id -u):$(id -g) koromerzhin/php:8.4.3-apache-symfony sh -c "git config --global user.name 'Symfony Project' && git config --global user.email 'symfony@example.com' && symfony new apps --version='{{.SYMFONYVERSION}}' --webapp"
137139
- rm -rf ./apps/.git
138140
- rm -rf ./.gitconfig
139141

140142
symfony:exec:
141143
desc: "Exécute une commande dans un conteneur en cours d'exécution"
144+
silent: true
142145
cmds:
143146
- task: create:apps
144147
- task: symfony:set-env-ids
@@ -151,13 +154,15 @@ tasks:
151154

152155
symfony:download-phar:
153156
desc: "Télécharger les différents fichiers phar"
157+
silent: true
154158
cmds:
155159
- task: download:php:tools
156160
vars:
157161
TOOLS_DIR: ./../apps
158162

159163
symfony:bash:
160164
desc: "Ouvre un shell bash dans le conteneur www"
165+
silent: true
161166
cmds:
162167
- task: docker:stack:shell
163168
vars:
@@ -310,4 +315,3 @@ tasks:
310315
else
311316
sed -i "s/GID=.*/GID=$(id -g)/" .env
312317
fi
313-

0 commit comments

Comments
 (0)