Documentation
¶
Overview ¶
Package version exposes build metadata embedded into the binary at link time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WantsHelp ¶
WantsHelp reports whether args ask for usage help. Like WantsVersion, it lets the config-less companion daemons (leoflow-server / -agent) answer `--help` with a usage message and exit 0, instead of falling through to a boot attempt that errors on missing config. Accepts the conventional `-h`, `-help`, and `--help`; exact match, no substring.
func WantsVersion ¶
WantsVersion reports whether args ask for the version (and nothing else runs). It accepts `version`, `-version`, and `--version` so the long-running companion binaries (leoflow-server / -agent / -mcp) can answer "what version are you?" without a full runnable config — checked before any config load or network connect. Kept deliberately narrow (no `-v`, which conventionally means verbose) and exact (no substring match).
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
GitCommit string `json:"git_commit"`
BuildDate string `json:"build_date"`
GoVersion string `json:"go_version"`
}
Info holds build metadata describing how the binary was produced.