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, falling back to the root command if the path is invalid.

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.