Documentation
¶
Overview ¶
Package version provides the command to display build and version information.
It supports outputting details in human-readable, JSON, or YAML formats, making it suitable for both interactive use and integration into CI/CD pipelines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVersionCmd ¶
NewVersionCmd creates and configures the version command.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version" yaml:"version"`
Commit string `json:"commit" yaml:"commit"`
Date string `json:"date" yaml:"date"`
GoVersion string `json:"goVersion" yaml:"goVersion"`
OS string `json:"os" yaml:"os"`
Arch string `json:"arch" yaml:"arch"`
BuiltBy string `json:"builtBy" yaml:"builtBy"`
}
Info represents the serializable build information.
Click to show internal directories.
Click to hide internal directories.