Documentation
¶
Overview ¶
Package cli wires pmt's cobra command surface. See doc/commands.md for the command reference this implements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
NewRootCmd builds a fresh root command. Called once from cmd/pmt/main.go (and repeatedly in tests, each call getting its own --repo flag binding).
func Version ¶
func Version() string
Version reports the module version pmt was built from. `go install .../pmt@<version>` (the documented install command) embeds the resolved module version into the binary automatically via runtime/debug.BuildInfo — no custom -ldflags needed, which matters because a plain `go install ...@latest` never passes any. Falls back to "dev" for a local `go build` run inside the module's own source tree, where Go reports "(devel)" instead of a real version.
Types ¶
This section is empty.