Add version to build
All checks were successful
Build and Publish / release (push) Successful in 1m6s

This commit is contained in:
2024-12-31 20:51:04 -05:00
parent 0cc5542ab6
commit 870760443e
29 changed files with 37 additions and 29 deletions

View File

@ -29,8 +29,9 @@ var rootCmd = &cobra.Command{
}
var (
utils *util.Utils
Version = "development"
configExemptCommands = regexp.MustCompile(`^(doc|conf)`)
utils *util.Utils
)
// Hook traversal is enabled, so this will be run for all
@ -80,6 +81,9 @@ func init() {
rootCmd.AddCommand(cache.CacheCmd)
rootCmd.AddCommand(conf.ConfigCmd)
rootCmd.AddCommand(project.ProjectCmd)
// Version
rootCmd.Version = Version
}
// initConfig reads in config file and ENV variables if set.