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

Class _SavedCmd2Env

cmd2/cmd2.py:213–218  ·  view source on GitHub ↗

cmd2 environment settings that are backed up when entering an interactive Python shell.

Source from the content-addressed store, hash-verified

211
212
213class _SavedCmd2Env:
214 """cmd2 environment settings that are backed up when entering an interactive Python shell."""
215
216 def __init__(self) -> None:
217 self.history: list[str] = []
218 self.completer: Callable[[str, int], str | None] | None = None
219
220
221class DisabledCommand(NamedTuple):

Callers 1

_set_up_py_shell_envMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…