mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-10 23:28:58 +00:00
Add option to respect existing tags and adjust calculations using them.
This commit is contained in:
@@ -60,6 +60,7 @@ type myParams struct {
|
||||
varUpdate bool
|
||||
varStrict bool
|
||||
varGenerateInTest bool
|
||||
varExisting bool
|
||||
}
|
||||
|
||||
var params myParams
|
||||
@@ -74,4 +75,5 @@ func init() {
|
||||
rootCmd.PersistentFlags().BoolVarP(¶ms.varDebug, "debug", "d", false, "Enable debug mode")
|
||||
rootCmd.PersistentFlags().BoolVarP(¶ms.varUpdate, "update", "u", false, "Update binary with latest")
|
||||
rootCmd.PersistentFlags().BoolVarP(¶ms.varStrict, "strict", "s", false, "Strict matching")
|
||||
rootCmd.PersistentFlags().BoolVarP(¶ms.varExisting, "existing", "e", false, "Respect existing tags")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user