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

Method get_visible_commands

cmd2/cmd2.py:2698–2704  ·  view source on GitHub ↗

Return a list of commands that have not been hidden or disabled.

(self)

Source from the content-addressed store, hash-verified

2696 ]
2697
2698 def get_visible_commands(self) -> list[str]:
2699 """Return a list of commands that have not been hidden or disabled."""
2700 return [
2701 command
2702 for command in self.get_all_commands()
2703 if command not in self.hidden_commands and command not in self.disabled_commands
2704 ]
2705
2706 def _get_alias_choices(self) -> Choices:
2707 """Return list of alias names and values as Choices."""

Calls 1

get_all_commandsMethod · 0.95