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

allow major/minor/patch from CLI instead of prompting #6

Open
tacman opened this issue Dec 4, 2024 · 0 comments
Open

allow major/minor/patch from CLI instead of prompting #6

tacman opened this issue Dec 4, 2024 · 0 comments

Comments

@tacman
Copy link

tacman commented Dec 4, 2024

If you're open to refactoring for the next version of this bundle, here's some ideas.

  • Possibly rename the command to simply bizkit:version
bin/console bizkit:version --help
# normal symfony help, describes the major/minor/patch options
bin/console bizkit:version 
# displays the current version
bin/console bizkit:version patch | minor | major
# bumps the appropriate version and displays it
bin/console bizkit:version 5.4.1
# forces the version to a particular semver

I don't care for the interactive part, especially since it's prompting by index number, which is confusing because I'm thinking of the semver number. Perhaps an --interactive option? Regardless, it'd be helpful to have the actual version in the prompt, e.g.

Your current application version is "1.0.0", do you wish to increment it? (yes/no) [yes]:
 >  

 Which version should be incremented? [minor]:
  [0] major (2.0.0)
  [1] minor (1.1.0)
  [2] patch (1.0.1)

Finally, can you add a note after the version has been bumped to describe what to do? E.g.

To delete this tag before pushing:

git tag --delete 1.1.0

To push this tag to the repository

git push --tag

Just brainstorming! I've been hoping to find a bundle like this, I used to have a bump script (bin/bump) that sort of does this, but not as well.

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

No branches or pull requests

1 participant