versioninfo

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "unknown"
)

Version and Commit identify the running CLI build.

Only release binaries (GoReleaser) stamp these via ldflags (-X ...versioninfo.Version=...). Every other build -- `mise build`, `go install github.com/entireio/cli/cmd/entire@<version>`, and plain `go build`/`go install ./...` -- carries no ldflags, so Load() recovers them from Go's embedded build info instead and the CLI still self-reports a real version and commit.

Functions

func Load added in v0.7.0

func Load()

Load fills Version and Commit from the binary's build info when ldflags left them at their defaults. Call once from main() before either is read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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