cmd

package
v0.0.0-beta.31 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Set via -ldflags at build time (see Makefile). These act as overrides. When the binary is installed via `go install <module>@<version>`, go install cannot pass -ldflags, so these remain at their sentinel defaults and we fall back to runtime/debug.ReadBuildInfo() to populate version info from the VCS data that `go install` embeds automatically.

Functions

func Execute

func Execute()

Types

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
	Date    string
	Dirty   string // "true", "false", or "unknown"
}

VersionInfo holds resolved version metadata for the running binary.

Jump to

Keyboard shortcuts

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