Validate incoming version for bump command

Description

It's common for people to "fat-finger" the bump command (alias for "package version") and type something like

which sets the actual version to "minor", "-patch", or "spam".

  • Add some basic validation so if a version is passed that doesn't appear to be proper semver, throw an error

  • Allow the --force flag to suppress this

  • Check for common strings like minor,patch,major and suggest to the user the correct format.

Assignee

Brad Wood

Reporter

Pete Freitag

Labels

None

Affects versions

Fix versions

Priority

Major
Configure