mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
mod comment
This commit is contained in:
parent
7c49923aa7
commit
d408557a09
@ -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())
|
||||
|
@ -1,5 +1,6 @@
|
||||
package constant
|
||||
|
||||
var (
|
||||
HomePath string // db home path
|
||||
// HomePath db home path
|
||||
HomePath string
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user