management.util.output_wrapper ============================== .. py:module:: management.util.output_wrapper .. autoapi-nested-parse:: Output wrapper for Django management commands. Provides an adapter between Django's CommandStyle and our OutputWriter protocol. Module Contents --------------- .. py:class:: CommandOutputWrapper(stdout, style) Adapter for Django command output to match OutputWriter protocol. .. py:method:: write(msg) Write a message to stdout. :param msg: The message to write. .. py:method:: success(msg) Format a success message with styling. :param msg: The message to format. :returns: The styled message. .. py:method:: error(msg) Format an error message with styling. :param msg: The message to format. :returns: The styled message. .. py:method:: warning(msg) Format a warning message with styling. :param msg: The message to format. :returns: The styled message.