Expand description
Command and command-group specifications.
Structs§
- Command
Context - Runtime context passed to advanced command handlers.
- Command
Result - Data returned by a command handler.
- Command
Result Metadata - Optional metadata a command can attach to its result.
- Command
Spec - Declarative leaf command metadata and parser arguments.
- Group
Spec - Declarative command group metadata.
- Runtime
Command Spec - Executable leaf command.
- Runtime
Group Spec - Executable command group with runtime children.
- Stream
Sender - Sender half for streaming command output.
Functions§
- command_
args_ from_ matches - Converts parsed command arguments into the JSON-ish map consumed by middleware.
- command_
path_ from_ matches - Extracts the colon-separated command path from parsed
clapmatches. - command_
path_ from_ parts - Builds a colon-separated command path from path parts.
- leaf_
matches - Returns the deepest subcommand matches.
Type Aliases§
- Command
Future - Boxed future returned by runtime command handlers.
- Command
Handler - Shared command handler used by
RuntimeCommandSpec. - Streaming
Command Future - Boxed future returned by streaming command handlers.
- Streaming
Command Handler - Shared streaming handler: receives context and an event sender; returns when the stream ends.