Skip to main content

Crate cabin

Crate cabin 

Source
Expand description

Library half of the cabin CLI binary.

The bin (src/main.rs) is intentionally a thin shim that calls run; the typed parser (Cli), the command dispatcher, and the per-command glue modules under cli/ live here so integration tests can re-use the same surface the binary does - Cli::command() is the single source of truth for which subcommands exist and which are hidden.

Structs§

Cli
Top-level Cabin CLI parser.

Functions§

run
Run the cabin CLI to completion using the given argv iterator. Owns parsing, color/verbosity resolution, dispatch, and top-level error rendering. The binary main calls this with the process’s own arguments.