MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / get_all_commands

Method get_all_commands

cmd2/cmd2.py:2690–2696  ·  view source on GitHub ↗

Return a list of all commands.

(self)

Source from the content-addressed store, hash-verified

2688 return dir(self)
2689
2690 def get_all_commands(self) -> list[str]:
2691 """Return a list of all commands."""
2692 return [
2693 name[len(constants.COMMAND_FUNC_PREFIX) :]
2694 for name in self.get_names()
2695 if name.startswith(constants.COMMAND_FUNC_PREFIX) and callable(getattr(self, name))
2696 ]
2697
2698 def get_visible_commands(self) -> list[str]:
2699 """Return a list of commands that have not been hidden or disabled."""

Callers 9

__init__Method · 0.95
_perform_completionMethod · 0.95
get_visible_commandsMethod · 0.95
_alias_createMethod · 0.95
_macro_createMethod · 0.95
disable_categoryMethod · 0.95
get_lineMethod · 0.45
abbrev_hookMethod · 0.45
mainFunction · 0.45

Calls 1

get_namesMethod · 0.95

Tested by

no test coverage detected