Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitDate is the date and time of the git commit used for a build (not the // build time) GitDate string // GitCommit is the SHA of the commit from which the platform was built. GitCommit string // GitBranch is the branch name from which the platform was built. GitBranch string // GitState indicates whether uncommitted changes were present at build // time. GitState string // ProjectName is the name of the complete system, used for config // directories etc ProjectName = "sherpa" // Version of the build Version string )
Functions ¶
func GetVersion ¶
func GetVersion() string
func ProgramName ¶
func ProgramName() string
ProgramName returns the name of the currently executing program. Perhaps misleadingly, this is set at runtime from cmd.Use of the root Cobra command.
func SetProgramName ¶
func SetProgramName(name string)
SetProgramName sets the name of the currently executing program. It should be called at the earliest opportunity (e.g. in PersistentPreRun of the root Cobra command).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.