Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "version", Short: "View version and commit information", Run: func(cmd *cobra.Command, args []string) { semver := build.Semver() commit := build.Commit() if build.IsDefined(semver) { fmt.Printf("Version: %s\n", semver) } if build.IsDefined(commit) { fmt.Printf("Commit: %s\n", commit) } if !build.IsDefined(semver) && !build.IsDefined(commit) { fmt.Printf("Version information unknown!\n") } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.