Expand description
CLI application assembly and execution.
Structs§
- Build
Info - Build metadata shown by the root
--versionflag. - Cli
- Configured CLI application.
- CliConfig
- Declarative configuration for a CLI application.
- CliRun
Output - Captured result of running a CLI in tests or embedding contexts.
- Module
Help Entry - One module row in root long help.
Enums§
- Argv0
Link Method - On-disk mechanism used by
Cli::create_linkto materialize an alternativeargv[0]name so the binary can be invoked under it. - Argv0
Route - How the engine behaves when invoked under a registered alternative
argv[0]name (busybox/git-style multi-call dispatch).
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§
- Apply
Flags - Hook used to copy parsed application-specific flags into middleware.
- Extra
Search Docs - Hook that contributes extra root-scope
--searchdocuments. - Init
Deps - 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.
- Register
Flags - Hook used to add application-specific global flags to the root
clapcommand. - Resolve
Meta - Hook used to adjust command metadata globally before middleware executes.
- Root
Next Actions - 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.