|
| | __init__ (self, *args, **kwargs) |
| |
| | set_default_command (self, command) |
| |
| | parse_args (self, ctx, args) |
| |
| | get_command (self, ctx, cmd_name) |
| |
| | resolve_command (self, ctx, args) |
| |
| | format_commands (self, ctx, formatter) |
| |
| | command (self, *args, **kwargs) |
| |
| dict[str, t.Any] | to_info_dict (self, Context ctx) |
| |
| None | add_command (self, Command cmd, str|None name=None) |
| |
|
Group | group (self, t.Callable[..., t.Any] __func) |
| |
|
t.Callable[[t.Callable[..., t.Any]], Group] | group (self, *t.Any args, **t.Any kwargs) |
| |
| t.Callable[[t.Callable[..., t.Any]], Group]|Group | group (self, *t.Any args, **t.Any kwargs) |
| |
| t.Callable[[F], F] | result_callback (self, bool replace=False) |
| |
| list[str] | list_commands (self, Context ctx) |
| |
| list[str] | collect_usage_pieces (self, Context ctx) |
| |
| None | format_options (self, Context ctx, HelpFormatter formatter) |
| |
| t.Any | invoke (self, Context ctx) |
| |
| list[CompletionItem] | shell_complete (self, Context ctx, str incomplete) |
| |
Public Member Functions inherited from click.core.Command |
|
str | __repr__ (self) |
| |
| str | get_usage (self, Context ctx) |
| |
|
list[Parameter] | get_params (self, Context ctx) |
| |
| None | format_usage (self, Context ctx, HelpFormatter formatter) |
| |
| list[str] | get_help_option_names (self, Context ctx) |
| |
| Option|None | get_help_option (self, Context ctx) |
| |
| _OptionParser | make_parser (self, Context ctx) |
| |
| str | get_help (self, Context ctx) |
| |
| str | get_short_help_str (self, int limit=45) |
| |
| None | format_help (self, Context ctx, HelpFormatter formatter) |
| |
| None | format_help_text (self, Context ctx, HelpFormatter formatter) |
| |
| None | format_epilog (self, Context ctx, HelpFormatter formatter) |
| |
| Context | make_context (self, str|None info_name, list[str] args, Context|None parent=None, **t.Any extra) |
| |
|
t.NoReturn | main (self, cabc.Sequence[str]|None args=None, str|None prog_name=None, str|None complete_var=None, t.Literal[True] standalone_mode=True, **t.Any extra) |
| |
|
t.Any | main (self, cabc.Sequence[str]|None args=None, str|None prog_name=None, str|None complete_var=None, bool standalone_mode=..., **t.Any extra) |
| |
| t.Any | main (self, cabc.Sequence[str]|None args=None, str|None prog_name=None, str|None complete_var=None, bool standalone_mode=True, bool windows_expand_args=True, **t.Any extra) |
| |
| t.Any | __call__ (self, *t.Any args, **t.Any kwargs) |
| |
Invokes a subcommand marked with `default=True` if any subcommand not
chosen.
:param default_if_no_args: resolves to the default command if no arguments
passed.