Skip to content
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

Merged
merged 6 commits into from
Oct 23, 2023
Merged

Conversation

featheredtoast
Copy link
Member

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

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
@SamSaffron
Copy link
Member

linting ... and ruby update ... can you take that as well?

@featheredtoast
Copy link
Member Author

featheredtoast commented Oct 23, 2023

Linted the rest of the files, added a lint ignore rule for the existing Eval, and updated referenced github task rubies to 3.2.

@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)
Copy link
Member

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: ... )

Copy link
Member Author

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

@SamSaffron
Copy link
Member

we should publish a gem here as well after you include this, maybe also update the readme?

@featheredtoast
Copy link
Member Author

Yeah I can take care of readme+changelog too 👍

@featheredtoast featheredtoast merged commit d51da1f into main Oct 23, 2023
2 checks passed
@featheredtoast featheredtoast deleted the add-tags-filtering branch October 23, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants