Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildInfo ¶
BuildInfo says which build of the CLI this is; the release build fills it in through linker flags.
func (BuildInfo) String ¶
String is the version line: "0.1.0 (commit 1a2b3c4, built 2026-10-09T12:42:20Z)", leaving out what is unknown.
func (BuildInfo) WithRuntime ¶
WithRuntime fills what the linker flags left unset from the build info embedded by the Go toolchain, so a binary from `go install` or `go build` inside a checkout still knows its module version and commit.
type Features ¶
type Features struct {
// Experimental enables the commands that are not ready for everyone: install and upgrade.
Experimental bool
}
Features say which parts of the CLI are available.
func FeaturesFromEnv ¶
FeaturesFromEnv reads the features from the environment; KUBRIX_EXPERIMENTAL=1 (or true, yes, on) enables the experimental ones.