Skip to main content

Module commands

Module commands 

Source
Expand description

Subcommand implementations. Every command gets a Ctx: the layered config (UX §12.1.3) built from the global flags, the config paths it resolved to, and helpers to build the engine and format numbers.

Structs§

Ctx
UsageError
A bad argument discovered after parsing (exit code 2, like clap’s own usage errors).

Functions§

confirm
Asks a yes/no question on the terminal. Ok(None) when stdin is not a terminal (no one to ask).
dispatch
err_out
Writes to stderr (human text next to a machine-readable stdout).
json_pretty
out
Writes to stdout; a closed pipe (| head) is not an error.
usage
Err(UsageError) as an anyhow error.