cli package¶
Submodules¶
cli.cli module¶
-
class
cli.cli.
CLI
(name=None, invoke_without_command=False, no_args_is_help=None, subcommand_metavar=None, chain=False, result_callback=None, **attrs)¶ Bases:
click.core.MultiCommand
-
get_command
(ctx, name)¶ Get a specific command by looking up the module.
Parameters: - ctx – Click context
- name – Command name
Returns: Module’s cli function
-
list_commands
(ctx)¶ Obtain a list of all available commands.
Parameters: ctx – Click context Returns: List of sorted commands
-