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

Split the --new-track and --edit-track options #545

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clalancette
Copy link
Contributor

While using bloom-release, I noticed that --new-track and --edit-track were in the same help bullet. They both use exactly the same code path, so from an implementation point of view, that makes some sense. However, they are conceptually different things, so I think splitting the help makes sense. That's what commit e3beb88 .

Commit 34c07a1 starts to go further and make them actually different actions. It doesn't quite work yet, but I was shooting for the following behavior:

  1. --new-track and --edit-track are mutually exclusive options
  2. If --new-track is specified, and the track already exists, an error is thrown.
  3. If --edit-track is specified, and the track does not exist, an error is thrown.
  4. If neither is specified, and the track doesn't exist, create the new track.

However, there are a lot of use-cases here, so I'm not sure if that logic is what we are going for. I'm opening this as a draft until then to get some feedback and see what others think of this.

While both edit-track and new-track use the exact same code in
the backend, they are conceptually different.  Split up argument
help so that they are different.

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
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.

1 participant