-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add command line flag to limit tasks #59
Comments
Interesting. I see how that could be handy. We could go for two complementary flags though, In the meantime, you could use # include all test-* tasks
yq eval 'del(.tasks.[] | select(.name != "test-*"))' dregsy.yaml
# exclude all test-* tasks
yq eval 'del(.tasks.[] | select(.name == "test-*"))' dregsy.yaml There should be an expression with only |
What about $ dregsy --config my_config_with_many_tasks.yaml --task foo --task bar --task baz |
I finally settled on |
done with PR #76 |
I have a dregsy yaml file that syncs to 5 different docker registries. From time to time, I would like to be able to run a manual sync to just one or two of them w/o having to extract that data to a separate yaml file. It would be very useful to be able to specify which tasks to run from the command line. I'm thinking something along the lines of what anisble-playbook uses:
dregsy --config regsync.yml --limit sync-registry2
The text was updated successfully, but these errors were encountered: