Documentation
¶
Overview ¶
Package cli wires the cobra command tree for the finna CLI.
Package cli — version.go is intentionally empty; the version command is implemented in ping.go as newDiagVersionCmd and wired in root.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteForTest ¶
ExecuteForTest is a test helper that runs the CLI with controlled I/O and returns the exit code. It is only compiled when the "release" build tag is absent (i.e., always during `go test`).
func NewRootCmd ¶
NewRootCmd builds the root command and attaches every subcommand. It is exposed so tests can construct an independent tree.
Types ¶
Click to show internal directories.
Click to hide internal directories.