Help

:= []
find_subcommand_or_default : CliConfig, List(Str) -> { config : CliConfig, subcommand_path : List(Str) }

Walks the subcommand tree from the root CLI config and returns the target command config. If the path is invalid, it falls back to the deepest command its longest valid prefix names, and returns that prefix as the path so the help header always names the command whose content is shown.

find_subcommand : SubcommandConfig, List(Str) -> Try(SubcommandConfig, [KeyNotFound])

Searches a command's config for subcommands recursively.

help_text : CliConfig, List(Str), TextStyle -> Str

Render the help text for a command at or under the root config.

usage_help : CliConfig, List(Str), TextStyle -> Str

Render just the usage text for a command at or under the root config.