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

Method get_names

cmd2/cmd2.py:2686–2688  ·  view source on GitHub ↗

Return an alphabetized list of names comprising the attributes of the cmd2 class instance.

(self)

Source from the content-addressed store, hash-verified

2684 return self.statement_parser.aliases
2685
2686 def get_names(self) -> list[str]:
2687 """Return an alphabetized list of names comprising the attributes of the cmd2 class instance."""
2688 return dir(self)
2689
2690 def get_all_commands(self) -> list[str]:
2691 """Return a list of all commands."""

Callers 2

get_all_commandsMethod · 0.95
get_help_topicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected