Skip to main content

Module command

Module command 

Source
Expand description

Command and command-group specifications.

Structs§

CommandContext
Runtime context passed to advanced command handlers.
CommandResult
Data returned by a command handler.
CommandResultMetadata
Optional metadata a command can attach to its result.
CommandSpec
Declarative leaf command metadata and parser arguments.
GroupSpec
Declarative command group metadata.
RuntimeCommandSpec
Executable leaf command.
RuntimeGroupSpec
Executable command group with runtime children.

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 clap matches.
command_path_from_parts
Builds a colon-separated command path from path parts.
leaf_matches
Returns the deepest subcommand matches.

Type Aliases§

CommandFuture
Boxed future returned by runtime command handlers.
CommandHandler
Shared command handler used by RuntimeCommandSpec.