mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 21:29: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() {
|
func Execute() {
|
||||||
if err := rootCmd.Execute(); err != nil {
|
if err := rootCmd.Execute(); err != nil {
|
||||||
log.Fatal(err.Error())
|
log.Fatal(err.Error())
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package constant
|
package constant
|
||||||
|
|
||||||
var (
|
var (
|
||||||
HomePath string // db home path
|
// HomePath db home path
|
||||||
|
HomePath string
|
||||||
)
|
)
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
package constant
|
package constant
|
||||||
|
|
||||||
const Name = "Nali" // bin name
|
// Name is the program name
|
||||||
|
const Name = "Nali"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Version = "unknown version" // version
|
// Version like 1.0.1
|
||||||
BuildTime = "unknown time" //build time
|
Version = "unknown version"
|
||||||
|
// BuildTime like 2020-01-01
|
||||||
|
BuildTime = "unknown time"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user