From 1303656f4a041e209131f0a6e8f7d6df73059e7f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Apr 2023 22:36:27 +0100 Subject: [PATCH] fix(justfile): remove hard-coded service name Add the service name as a parameter and include it from the `phpunit` recipe. --- templates/justfile.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/justfile.twig b/templates/justfile.twig index 14df022..e8ba649 100644 --- a/templates/justfile.twig +++ b/templates/justfile.twig @@ -10,7 +10,7 @@ composer *args: alias phpunit := test test *args: - {{ "just _run phpunit {{ args }}" | raw }} + {{ "just _run php phpunit {{ args }}" | raw }} {% endif %} {% if "drupal-project" is same as type %} @@ -52,5 +52,5 @@ artisan *args: _exec +args: {{ "docker compose exec {{ args }}" | raw }} -_run command *args: - {{ "docker compose run --rm --no-deps --entrypoint {{ command }} --tty php {{ args }}" | raw }} +_run service command *args: + {{ "docker compose run --rm --no-deps --entrypoint {{ command }} --tty {{ service }} {{ args }}" | raw }}