Skip to main content

Module cli

Module cli 

Source
Expand description

CLI application assembly and execution.

Structs§

BuildInfo
Build metadata shown by the root --version flag.
Cli
Configured CLI application.
CliConfig
Declarative configuration for a CLI application.
CliRunOutput
Captured result of running a CLI in tests or embedding contexts.
ModuleHelpEntry
One module row in root long help.

Functions§

build_root_long
Builds the root long help text from module categories and built-in command hints.
render_next_actions_human
Builds a “Next actions” section appended to bare-root human help. Returns an empty string when there are no actions so the help output is unchanged.

Type Aliases§

ApplyFlags
Hook used to copy parsed application-specific flags into middleware.
ExtraSearchDocs
Hook that contributes extra root-scope --search documents.
InitDeps
Late dependency initializer run once before real command execution.
OnShutdown
Hook called after a CLI run completes.
PreRun
Hook run immediately before executable commands and built-ins.
RegisterFlags
Hook used to add application-specific global flags to the root clap command.
ResolveMeta
Hook used to adjust command metadata globally before middleware executes.
RootNextActions
Hook that supplies the suggested next actions shown when the CLI is invoked with no subcommand (bare root). The same actions drive a human “Next actions” section and the JSON discovery envelope.