-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide option to run a single/list of tasks from the config #580
Labels
Comments
Hi @paslandau, Looks like a great addition. I'dd accept a PR for that. |
Ha. Totally missed that.. the PR anyway :) |
paslandau
pushed a commit
to paslandau/grumphp
that referenced
this issue
Jan 4, 2019
This was referenced Jan 7, 2019
Landerstraeten
pushed a commit
to paslandau/grumphp
that referenced
this issue
Apr 19, 2019
Landerstraeten
pushed a commit
to paslandau/grumphp
that referenced
this issue
May 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0.14.3
It would be great to have an option in the
run
command to specify a list of tasks that should be run by grumphp instead of running all tasksProposal
Consider the following grumphp.yml
Run grumphp via
vendor/bin/grumphp run --tasks=composer,file_size
The
--tasks
option would be split on "," and the resulting values would act as a "whitelist" for the given config. I.e. onlycomposer
andfile_size
would run:composer_require_checker
would be omitted since it is not listed in the option.If
--tasks
is empty / not given, the default is the current behavior (maintaining bc).Use cases
--tasks
option we could keep one file and pick the subset of tools that we need.Implementation
I was having a quick look into the run command and this should be achievable with minimal effort, i.e.
tasks
option toRunCommand
& parse comma separated stringtasks
property toTaskRunnerContext
TaskRunner::run()
filterTaskCollection
based on the task name, i.e.TaskCollection::filterByTaskName()
asI would prepare a PR if you'd like to move forward.
Cheers
Pascal
The text was updated successfully, but these errors were encountered: