From d45d0d6616db3d503735f4c98d7f65480b9fcbef Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Apr 2023 22:20:19 +0100 Subject: [PATCH] refactor(justfile): add a `run` recipe --- templates/justfile.twig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/justfile.twig b/templates/justfile.twig index c94265c..3a1ce6f 100644 --- a/templates/justfile.twig +++ b/templates/justfile.twig @@ -41,12 +41,11 @@ sync: clean build {% if "laravel" is same as type %} artisan *args: - docker compose run \ - --entrypoint php \ - --rm \ - --tty \ - php artisan {{ "{{ args }}" | raw }} + {{ "just _run artisan {{ args }}" | raw }} {% endif %} _exec +args: {{ "docker compose exec {{ args }}" | raw }} + +_run command *args: + {{ "docker compose run --rm --no-deps --entrypoint {{ command }} --tty php {{ args }}" | raw }}