diff --git a/cmd/root.go b/cmd/root.go index 211bc7f..342f7ca 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{ }, } -// parse subcommand and run +// Execute parse subcommand and run func Execute() { if err := rootCmd.Execute(); err != nil { log.Fatal(err.Error()) diff --git a/constant/path.go b/constant/path.go index ec2c0db..0465455 100644 --- a/constant/path.go +++ b/constant/path.go @@ -1,5 +1,6 @@ package constant var ( - HomePath string // db home path + // HomePath db home path + HomePath string ) diff --git a/constant/version.go b/constant/version.go index 02b0172..fceda85 100644 --- a/constant/version.go +++ b/constant/version.go @@ -1,8 +1,11 @@ package constant -const Name = "Nali" // bin name +// Name is the program name +const Name = "Nali" var ( - Version = "unknown version" // version - BuildTime = "unknown time" //build time + // Version like 1.0.1 + Version = "unknown version" + // BuildTime like 2020-01-01 + BuildTime = "unknown time" )