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

Method __init__

tests/test_completion.py:147–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 """Example cmd2 application used to exercise tab completion tests"""
146
147 def __init__(self) -> None:
148 cmd2.Cmd.__init__(self, multiline_commands=["test_multiline"])
149 self.foo = "bar"
150 self.add_settable(
151 utils.Settable(
152 "foo",
153 str,
154 description="a test settable param",
155 settable_object=self,
156 completer=CompletionsExample.complete_foo_val,
157 )
158 )
159
160 def do_test_basic(self, args) -> None:
161 pass

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
add_settableMethod · 0.45

Tested by

no test coverage detected