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

Method pfeedback

cmd2/cmd2.py:1702–1749  ·  view source on GitHub ↗

Print nonessential feedback. The output can be silenced with the `quiet` setting and its inclusion in redirected output is controlled by the `feedback_to_output` setting. 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

1700 self.print_to(sys.stderr, formatted_exception)
1701
1702 def pfeedback(
1703 self,
1704 *objects: Any,
1705 sep: str = " ",
1706 end: str = "\n",
1707 style: StyleType | None = None,
1708 soft_wrap: bool = True,
1709 justify: JustifyMethod | None = None,
1710 emoji: bool = False,
1711 markup: bool = False,
1712 highlight: bool = False,
1713 rich_print_kwargs: Mapping[str, Any] | None = None,
1714 **kwargs: Any, # noqa: ARG002
1715 ) -> None:
1716 """Print nonessential feedback.
1717
1718 The output can be silenced with the `quiet` setting and its inclusion in redirected output
1719 is controlled by the `feedback_to_output` setting.
1720
1721 For details on the parameters, refer to the `print_to` method documentation.
1722 """
1723 if not self.quiet:
1724 if self.feedback_to_output:
1725 self.poutput(
1726 *objects,
1727 sep=sep,
1728 end=end,
1729 style=style,
1730 soft_wrap=soft_wrap,
1731 justify=justify,
1732 emoji=emoji,
1733 markup=markup,
1734 highlight=highlight,
1735 rich_print_kwargs=rich_print_kwargs,
1736 )
1737 else:
1738 self.perror(
1739 *objects,
1740 sep=sep,
1741 end=end,
1742 style=style,
1743 soft_wrap=soft_wrap,
1744 justify=justify,
1745 emoji=emoji,
1746 markup=markup,
1747 highlight=highlight,
1748 rich_print_kwargs=rich_print_kwargs,
1749 )
1750
1751 def ppaged(
1752 self,

Callers 3

onecmd_plus_hooksMethod · 0.95
do_historyMethod · 0.95
do_print_feedbackMethod · 0.80

Calls 2

poutputMethod · 0.95
perrorMethod · 0.95

Tested by 1

do_print_feedbackMethod · 0.64