Expand description
CLI command runner
This module defines CommandRunner, which encapsulates the full lifecycle of a CLI command:
event channel creation, context construction, signal handling, and terminal presentation. The
main!() macro dispatches to CommandRunner::run when the resolved leaf is a command.
Application authors do not interact with this module directly. The main!() macro calls
CommandRunner::run with the resolved matches and the leaf’s exec function. The runner takes
any callable, so a caller that builds its command tree at run time can dispatch to a closure
that owns the command it resolved.
Structs§
- Command
Runner - CLI command runner