Skip to content

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

@tacman

Description

@tacman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions