Documentation
¶
Overview ¶
Package version provides the Cobra command for displaying the CLI's current version, build date, and commit information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VersionInfo ¶
type VersionInfo struct {
Version string `json:"version"`
Commit string `json:"commit,omitempty"`
Date string `json:"date,omitempty"`
Latest string `json:"latest,omitempty"`
Current bool `json:"current"`
// CheckFailed marks a degraded response: the latest-version check was
// attempted but the release source could not be reached, so Latest is
// absent and Current is false because the answer is unknown — scripts
// must not read this as "up to date" or "behind".
CheckFailed bool `json:"check_failed,omitempty"`
}
VersionInfo holds version details for structured output.
Click to show internal directories.
Click to hide internal directories.