You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Victorique/vtqe/tools/cmd.go

20 lines
355 B
Go

5 years ago
package tools
import (
"github.com/spf13/cobra"
)
var Version string = "0.1.24"
5 years ago
var Maincmd = &cobra.Command{
Use: "",
Short: "Victorique's Small Smart Toolkit",
Long: "Victorique's Small Smart Toolkit",
}
func init() {
cobra.MousetrapHelpText = ""
Maincmd.Flags().BoolP("version", "v", false, "查看版本号")
5 years ago
Maincmd.Version = Version
}