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

Method poutput

cmd2/cmd2.py:1517–1547  ·  view source on GitHub ↗

Print objects to self.stdout. For details on the parameters, refer to the `print_to` method documentation.

(
        self,
        *objects: Any,
        sep: str = " ",
        end: str = "\n",
        style: StyleType | None = None,
        soft_wrap: bool = True,
        justify: JustifyMethod | None = None,
        emoji: bool = False,
        markup: bool = False,
        highlight: bool = False,
        rich_print_kwargs: Mapping[str, Any] | None = None,
        **kwargs: Any,  # noqa: ARG002
    )

Source from the content-addressed store, hash-verified

1515 Cmd2GeneralConsole(file=sys.stderr).print(self.broken_pipe_warning)
1516
1517 def poutput(
1518 self,
1519 *objects: Any,
1520 sep: str = " ",
1521 end: str = "\n",
1522 style: StyleType | None = None,
1523 soft_wrap: bool = True,
1524 justify: JustifyMethod | None = None,
1525 emoji: bool = False,
1526 markup: bool = False,
1527 highlight: bool = False,
1528 rich_print_kwargs: Mapping[str, Any] | None = None,
1529 **kwargs: Any, # noqa: ARG002
1530 ) -> None:
1531 """Print objects to self.stdout.
1532
1533 For details on the parameters, refer to the `print_to` method documentation.
1534 """
1535 self.print_to(
1536 self.stdout,
1537 *objects,
1538 sep=sep,
1539 end=end,
1540 style=style,
1541 soft_wrap=soft_wrap,
1542 justify=justify,
1543 emoji=emoji,
1544 markup=markup,
1545 highlight=highlight,
1546 rich_print_kwargs=rich_print_kwargs,
1547 )
1548
1549 def perror(
1550 self,

Callers 15

psuccessMethod · 0.95
pfeedbackMethod · 0.95
ppagedMethod · 0.95
runcmds_plus_hooksMethod · 0.95
_complete_statementMethod · 0.95
_read_raw_inputMethod · 0.95
_cmdloopMethod · 0.95
_alias_createMethod · 0.95
_alias_deleteMethod · 0.95
_alias_listMethod · 0.95
_macro_createMethod · 0.95

Calls 1

print_toMethod · 0.95

Tested by 15

base_fooMethod · 0.64
base_barMethod · 0.64
base_helplessMethod · 0.64
subcmd_funcMethod · 0.64
helpless_subcmd_funcMethod · 0.64
do_test_captureMethod · 0.64
prepost_hook_oneMethod · 0.64
prepost_hook_twoMethod · 0.64
do_sayMethod · 0.64
do_skip_postcmd_hooksMethod · 0.64
do_argparse_cmdMethod · 0.64
base_fooMethod · 0.64