posit-dev / posit-dev/images-shared
Add flag to control CLI parameter matching behavior
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 0
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 22
Description
Bakery currently supports regex matching for CLI flags like --image-name and --image-variant.
This can lead to unexpected behavior, for example: bakery build --image-name connect in the images-connect repository will match all the images, since they start with connect.
We should make this behavior more obvious, perhaps by adding a --regexp/-e flag or similar to enable regex matching.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Bakery CLI code that matches parameters such as --image-name and --image-variant, then reproduce the images-connect example with bakery build --image-name connect. Done means regex matching is opt-in through a documented --regexp or -e flag, while the default behavior no longer unexpectedly matches all names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100