Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "version", Short: "Show information about the current binary build", Args: cobra.NoArgs, Run: printBuildInfo, }
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { BuildTime string LastCommit string SemanticVersion string SystemVersion string GolangVersion string }
BuildInfo represents all necessary information about the current build.
func GetBuildInfo ¶
func GetBuildInfo() *BuildInfo
GetBuildInfo returns information about the current build.
Click to show internal directories.
Click to hide internal directories.