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

Method psuccess

cmd2/cmd2.py:1583–1611  ·  view source on GitHub ↗

Wrap poutput, but apply Cmd2Style.SUCCESS. For details on the parameters, refer to the `print_to` method documentation.

(
        self,
        *objects: Any,
        sep: str = " ",
        end: str = "\n",
        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

1581 )
1582
1583 def psuccess(
1584 self,
1585 *objects: Any,
1586 sep: str = " ",
1587 end: str = "\n",
1588 soft_wrap: bool = True,
1589 justify: JustifyMethod | None = None,
1590 emoji: bool = False,
1591 markup: bool = False,
1592 highlight: bool = False,
1593 rich_print_kwargs: Mapping[str, Any] | None = None,
1594 **kwargs: Any, # noqa: ARG002
1595 ) -> None:
1596 """Wrap poutput, but apply Cmd2Style.SUCCESS.
1597
1598 For details on the parameters, refer to the `print_to` method documentation.
1599 """
1600 self.poutput(
1601 *objects,
1602 sep=sep,
1603 end=end,
1604 style=Cmd2Style.SUCCESS,
1605 soft_wrap=soft_wrap,
1606 justify=justify,
1607 emoji=emoji,
1608 markup=markup,
1609 highlight=highlight,
1610 rich_print_kwargs=rich_print_kwargs,
1611 )
1612
1613 def pwarning(
1614 self,

Callers 2

test_psuccessFunction · 0.80
do_theme_showMethod · 0.80

Calls 1

poutputMethod · 0.95

Tested by 1

test_psuccessFunction · 0.64