cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 15 Imported by: 0

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

func NewRootCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

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