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

Method do_echo

examples/getting_started.py:124–131  ·  view source on GitHub ↗

Multiline command.

(self, arg: cmd2.Statement)

Source from the content-addressed store, hash-verified

122 self.poutput(self.intro)
123
124 def do_echo(self, arg: cmd2.Statement) -> None:
125 """Multiline command."""
126 self.poutput(
127 stylize(
128 arg,
129 style=Style(color=self.foreground_color),
130 )
131 )
132
133
134if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

stylizeFunction · 0.90
poutputMethod · 0.80

Tested by

no test coverage detected