Add version to build
All checks were successful
Build and Publish / release (push) Successful in 1m6s
All checks were successful
Build and Publish / release (push) Successful in 1m6s
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user