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

Method do_basic

examples/read_input.py:22–26  ·  view source on GitHub ↗

Call read_input with no history or tab completion.

(self, _)

Source from the content-addressed store, hash-verified

20
21 @cmd2.with_category(EXAMPLE_COMMANDS)
22 def do_basic(self, _) -> None:
23 """Call read_input with no history or tab completion."""
24 self.poutput("Tab completion and up-arrow history is off")
25 with contextlib.suppress(EOFError):
26 self.read_input("> ")
27
28 @cmd2.with_category(EXAMPLE_COMMANDS)
29 def do_basic_with_history(self, _) -> None:

Callers

nothing calls this directly

Calls 2

poutputMethod · 0.80
read_inputMethod · 0.80

Tested by

no test coverage detected