From 3eae6da0b291ccd80a97416ed6a4292cf6eeaeb1 Mon Sep 17 00:00:00 2001 From: Marian13 Date: Sun, 25 Sep 2022 12:12:24 +0300 Subject: [PATCH] feature(task): forward args to original command --- Taskfile.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index dc22003c476..967598a9adb 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -9,6 +9,9 @@ version: '3' # # NOTE: Use `[ "${IN_DOCKER_CONTAINER}" == "true" ] && echo true || echo false' to debug ``[ "${IN_DOCKER_CONTAINER}" == "true" ]'. # +# NOTE: Forwarding CLI arguments to commands ({{.CLI_ARGS}}). +# https://taskfile.dev/usage/#forwarding-cli-arguments-to-commands +# tasks: default: cmds: @@ -146,28 +149,28 @@ tasks: rspec:dry: cmds: - - bundle exec appraisal dry rspec --format progress --require dry_helper + - bundle exec appraisal dry rspec --format progress --require dry_helper {{.CLI_ARGS}} rspec:rails_5.2: cmds: - - bundle exec appraisal rails_5.2 rspec --format progress --require rails_helper + - bundle exec appraisal rails_5.2 rspec --format progress --require rails_helper {{.CLI_ARGS}} rspec:rails_6.0: cmds: - - bundle exec appraisal rails_6.0 rspec --format progress --require rails_helper + - bundle exec appraisal rails_6.0 rspec --format progress --require rails_helper {{.CLI_ARGS}} rspec:rails_6.1: cmds: - - bundle exec appraisal rails_6.1 rspec --format progress --require rails_helper + - bundle exec appraisal rails_6.1 rspec --format progress --require rails_helper {{.CLI_ARGS}} rspec:rails_7.0: cmds: - - bundle exec appraisal rails_7.0 rspec --format progress --require rails_helper + - bundle exec appraisal rails_7.0 rspec --format progress --require rails_helper {{.CLI_ARGS}} rspec:standard: cmds: - - bundle exec rspec --format progress + - bundle exec rspec --format progress {{.CLI_ARGS}} rubocop: cmds: - - bundle exec rubocop --config .rubocop.yml + - bundle exec rubocop --config .rubocop.yml {{.CLI_ARGS}}