-
Notifications
You must be signed in to change notification settings - Fork 25
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
FEATURE: add --tags and --skip-tags options #28
Conversation
Allow config manifests to be tagged, so a pups run can apply a subset of run commands. Lots of linting. Fixing test imports, update MiniTest::Test -> Minitest::Test
linting ... and ruby update ... can you take that as well? |
Linted the rest of the files, added a lint ignore rule for the existing Eval, and updated referenced github task rubies to 3.2. |
lib/pups/config.rb
Outdated
@config = config | ||
|
||
# remove any ignored config elements prior to any more processing | ||
ignored&.each { |e| @config.delete(e) } | ||
|
||
filter_tags(tags) | ||
filter_tags(skip_tags, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sig on this method is a bit odd:
Maybe ...
filter_tags(include_tags: ... , exclude_tags: ... )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, it's a bit more verbose now but hopefully a little more readable
we should publish a gem here as well after you include this, maybe also update the readme? |
Yeah I can take care of readme+changelog too 👍 |
use include_tags, exclude_tags
Allow config manifests to be tagged, so a pups run can apply a subset of run commands.
--tags runs only commands tagged with listed tags.
--skip-tags runs commands not tagged with listed tags.
Lots of linting.
Fixing test imports, update MiniTest::Test -> Minitest::Test