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

Method send_text

examples/dynamic_commands.py:37–39  ·  view source on GitHub ↗

Simulate sending text to a server and printing the response.

(self, _args: cmd2.Statement, *, text: str)

Source from the content-addressed store, hash-verified

35 super().__init__(include_ipy=True)
36
37 def send_text(self, _args: cmd2.Statement, *, text: str) -> None:
38 """Simulate sending text to a server and printing the response."""
39 self.poutput(text.capitalize())
40
41 def text_help(self, *, text: str) -> None:
42 """Deal with printing help for the dynamically added commands."""

Callers 3

test_async_alertFunction · 0.80
test_read_raw_input_ttyFunction · 0.80

Calls 1

poutputMethod · 0.80

Tested by 3

test_async_alertFunction · 0.64
test_read_raw_input_ttyFunction · 0.64