Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is version of binary Version string // Storage is the storage engine used by this binary Storage string // GitSHA is the SHA of commit GitSHA string // GoVersion is the version of go compiler GoVersion string // GoOsArch is the os and arch of the binary GoOsArch string // Date is the time when binary is build Date string )
values will be injected while building
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "show version", Run: func(cmd *cobra.Command, args []string) { fmt.Println("KubeBrain") fmt.Println("Version: \t", Version) fmt.Println("Storage: \t", Storage) fmt.Println("Git SHA: \t", GitSHA) fmt.Println("Go Version:\t", GoVersion) fmt.Println("Go OS/Arch:\t", GoOsArch) fmt.Println("BuildTime: \t", Date) }, }
VersionCmd is the cobra.Command for print version info
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.