From 178fc8738329d21264092a2e2d49bde1d443c73e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 6 Apr 2022 22:15:40 +0100 Subject: [PATCH] build(run): add `console` task --- README.md | 2 +- run | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1ebd85..8d8ea93 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ A Symfony console application used by the [PHP South Wales user group](https://w Run the `meetup:pick-winner` command to retrieve the 'yes' RSVPs from Meetup for an event, and select a winner at random. The only argument is the Meetup event ID, which is required. - ./bin/console meetup:pick-winner + ./run console meetup:pick-winner RSVPs by event hosts (i.e. organisers) are automatically removed so that they are not returned. diff --git a/run b/run index 413779b..869e32c 100755 --- a/run +++ b/run @@ -29,6 +29,13 @@ function composer { ${DOCKER_TAG} "${@}" } +function console { + docker container run --rm -t \ + --entrypoint php \ + ${DOCKER_TAG} \ + bin/console ${@} +} + function help { printf "%s [args]\n\nTasks:\n" "${0}"