You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: list the min/v1/error codes and their exit codes in cli-min.md #3402
min in a machine output mode (-o json) prints a min/v1/error object whose code names the error kind. Scripts match on that string. docs/reference/cli-min.md does not list the codes, so a script author cannot tell which codes exist or which exit code each stands for.
the address matches more than one box, or an id start is ambiguous
4
not_found
the address matches no box
7
host_unreachable
the box's host does not answer
usage is new. No other code or document defined a kind for exit 2. The review on #3386 flagged that a later rename would break scripts.
Ask
Document the min/v1/error object in docs/reference/cli-min.md: its fields (code, message, hint), and every code the CLI emits with the exit code it goes with. Include the three above and the ones emitted elsewhere (BoxAddressRefusal::code in crates/minimal/src/cmd/boxes/address.rs, and machine_mode_answer in crates/minimal/src/main.rs). State that a code is stable once documented.
Activity