Documentation
¶
Overview ¶
Package cli wires up the cobra command tree for the nelmwave binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute() int
Execute runs the root command with a context cancelled on SIGINT/SIGTERM, giving in-flight work a chance to stop gracefully. It returns the process exit code.
func ExitCode ¶
ExitCode maps an error returned by a command to the exit code Execute would report for it: 0 for nil, the carried code for a signalling error (2 from diff --detailed-exitcode), 1 for anything else. Callers embedding the command tree — the end-to-end suite, or another binary — need this to tell "changes are planned" apart from "the command failed".
func NewRootCommand ¶
NewRootCommand builds the root `nelmwave` command with all subcommands attached, using a fresh set of global options. Useful for tests.
Types ¶
This section is empty.