MCPcopy
hub / github.com/pallets/click / list_commands

Method list_commands

src/click/core.py:1881–1883  ·  view source on GitHub ↗

Returns a list of subcommand names in the order they should appear.

(self, ctx: Context)

Source from the content-addressed store, hash-verified

1879 return self.commands.get(cmd_name)
1880
1881 def list_commands(self, ctx: Context) -> list[str]:
1882 """Returns a list of subcommand names in the order they should appear."""
1883 return sorted(self.commands)
1884
1885 def collect_usage_pieces(self, ctx: Context) -> list[str]:
1886 rv = super().collect_usage_pieces(ctx)

Callers 5

to_info_dictMethod · 0.95
format_commandsMethod · 0.95
list_commandsMethod · 0.45
get_commandMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected