Add option to respect existing tags and adjust calculations using them.

This commit is contained in:
2021-12-11 10:43:12 +00:00
parent e32b4b9544
commit a0fa4ee4cd
6 changed files with 74 additions and 4 deletions
+2
View File
@@ -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(&params.varDebug, "debug", "d", false, "Enable debug mode")
rootCmd.PersistentFlags().BoolVarP(&params.varUpdate, "update", "u", false, "Update binary with latest")
rootCmd.PersistentFlags().BoolVarP(&params.varStrict, "strict", "s", false, "Strict matching")
rootCmd.PersistentFlags().BoolVarP(&params.varExisting, "existing", "e", false, "Respect existing tags")
}