build

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL