Skip to content

Allow filtering of sweepers using regular expressions#404

Draft
SarahFrench wants to merge 4 commits intohashicorp:mainfrom
SarahFrench:sweeper-filter-regex
Draft

Allow filtering of sweepers using regular expressions#404
SarahFrench wants to merge 4 commits intohashicorp:mainfrom
SarahFrench:sweeper-filter-regex

Conversation

@SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Dec 21, 2024

Fixes #74

This PR allows users to filter sweepers using regular expressions. Currently if a user uses ^aws_foo$ as a filter it will look for a sweeper whose name contains the string "^aws_foo$". Now the string will be interpreted as a regex.

TODO:

  • address valid use of commas in regex: quantifiers like {1,3} or {1,}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweeper '-sweep-run' flag to use regexp match when filtering sweepers to run

1 participant