posit-dev / posit-dev/images-shared

Add flag to control CLI parameter matching behavior

Open
#519 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cvp:1 docker tdp:1
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.