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

Class CommandSetB

tests/test_commandset.py:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110class CommandSetB(CommandSetBase):
111 DEFAULT_CATEGORY = "Command Set B"
112
113 def __init__(self, arg1) -> None:
114 super().__init__()
115 self._arg1 = arg1
116
117 def do_aardvark(self, statement: cmd2.Statement) -> None:
118 """Aardvark Command"""
119 self._cmd.poutput("Aardvark!")
120
121 def do_bat(self, statement: cmd2.Statement) -> None:
122 """Bat Command"""
123 self._cmd.poutput("Bat!!")
124
125 def do_crocodile(self, statement: cmd2.Statement) -> None:
126 """Crocodile Command"""
127 self._cmd.poutput("Crocodile!!")
128
129
130def test_autoload_commands(autoload_command_sets_app) -> None:

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…