|
| None | __init__ (self, str|None name=None, list[Group]|None sources=None, **t.Any kwargs) |
| |
| None | add_source (self, Group group) |
| |
| Command|None | get_command (self, Context ctx, str cmd_name) |
| |
| list[str] | list_commands (self, Context ctx) |
| |
| dict[str, t.Any] | to_info_dict (self, Context ctx) |
| |
| None | add_command (self, Command cmd, str|None name=None) |
| |
|
Command | command (self, t.Callable[..., t.Any] __func) |
| |
|
t.Callable[[t.Callable[..., t.Any]], Command] | command (self, *t.Any args, **t.Any kwargs) |
| |
| t.Callable[[t.Callable[..., t.Any]], Command]|Command | command (self, *t.Any args, **t.Any kwargs) |
| |
|
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] | collect_usage_pieces (self, Context ctx) |
| |
| None | format_options (self, Context ctx, HelpFormatter formatter) |
| |
| None | format_commands (self, Context ctx, HelpFormatter formatter) |
| |
| list[str] | parse_args (self, Context ctx, list[str] args) |
| |
| t.Any | invoke (self, Context ctx) |
| |
|
tuple[str|None, Command|None, list[str]] | resolve_command (self, Context ctx, list[str] args) |
| |
| 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) |
| |
A :class:`Group` that looks up subcommands on other groups. If a command
is not found on this group, each registered source is checked in order.
Parameters on a source are not added to this group, and a source's callback
is not invoked when invoking its commands. In other words, this "flattens"
commands in many groups into this one group.
:param name: The name of the group command.
:param sources: A list of :class:`Group` objects to look up commands from.
:param kwargs: Other arguments passed to :class:`Group`.
.. versionchanged:: 8.2
This is a subclass of ``Group``. Commands are looked up first on this
group, then each of its sources.