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

Method do_pretty

examples/pretty_print.py:21–23  ·  view source on GitHub ↗

Print an object using ppretty().

(self, _: cmd2.Statement)

Source from the content-addressed store, hash-verified

19 super().__init__()
20
21 def do_pretty(self, _: cmd2.Statement) -> None:
22 """Print an object using ppretty()."""
23 self.ppretty(EXAMPLE_DATA)
24
25
26if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

pprettyMethod · 0.80

Tested by

no test coverage detected