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

Method __init__

cmd2/rich_utils.py:561–573  ·  view source on GitHub ↗

Cmd2GeneralConsole initializer. :param file: optional file object where the console should write to. Defaults to sys.stdout.

(self, *, file: IO[str] | None = None)

Source from the content-addressed store, hash-verified

559 """
560
561 def __init__(self, *, file: IO[str] | None = None) -> None:
562 """Cmd2GeneralConsole initializer.
563
564 :param file: optional file object where the console should write to.
565 Defaults to sys.stdout.
566 """
567 super().__init__(
568 file=file,
569 soft_wrap=True,
570 markup=False,
571 emoji=False,
572 highlight=False,
573 )
574
575
576class Cmd2RichArgparseConsole(Cmd2BaseConsole):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected