Skip to main content

Module runner

Module runner 

Source
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 exec function pointer.

Structsยง

CommandRunner
CLI command runner