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}"