Skip to main content

Module embedded

Module embedded 

Source
Expand description

Process control for a CLI embedded in another runtime.

crate::Cli::parse owns a process: it prints help, versions and failures, then exits where appropriate. An N-API module, WASM host or editor integration cannot let a library end its process. A derived CLI’s embedded_outcome entry point owns the whole control protocol — spec and completion requests as well as help, versions and failures — and turns every decision into a value the host can print or return instead. outcome is the lower-level parser-and-renderer for hand-written tables.

Structs§

Exit
What an embedded host should print before returning the supplied status.

Enums§

Outcome
The two things dispatching a CLI inside another runtime can do.

Functions§

outcome
Parse one command line without printing or ending the host process.