Documentation
¶
Overview ¶
Package versioninfo reports build and update metadata for the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GitSHA = "unknown" GitBranch = "unknown" GitDirty = "unknown" BuildDate = "unknown" )
Functions ¶
func RenderString ¶
func RenderText ¶
Types ¶
type Report ¶
type Report struct {
Kind string `json:"kind"`
Action string `json:"action"`
Status string `json:"status"`
HumanReadable string `json:"human_readable"`
Version string `json:"version"`
GitSHA string `json:"git_sha"`
GitSHAShort string `json:"git_sha_short"`
GitBranch string `json:"git_branch"`
GitDirty string `json:"git_dirty"`
BuildDate string `json:"build_date"`
BuildTarget string `json:"build_target"`
GoVersion string `json:"go_version"`
ModulePath string `json:"module_path,omitempty"`
ExecutablePath string `json:"executable_path,omitempty"`
WorkspaceGitSHA string `json:"workspace_git_sha,omitempty"`
WorkspaceMatch *bool `json:"workspace_match,omitempty"`
Hint string `json:"hint,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.