MCPcopy Create free account
hub / github.com/pyinvoke/invoke / handle_stdout

Method handle_stdout

invoke/runners.py:774–795  ·  view source on GitHub ↗

Read process' stdout, storing into a buffer & printing/parsing. Intended for use as a thread target. Only terminates when all stdout from the subprocess has been read. :param buffer_: The capture buffer shared with the main thread. :param bool hide: Whether

(
        self, buffer_: List[str], hide: bool, output: IO
    )

Source from the content-addressed store, hash-verified

772 self.respond(buffer_)
773
774 def handle_stdout(
775 self, buffer_: List[str], hide: bool, output: IO
776 ) -> None:
777 """
778 Read process' stdout, storing into a buffer & printing/parsing.
779
780 Intended for use as a thread target. Only terminates when all stdout
781 from the subprocess has been read.
782
783 :param buffer_: The capture buffer shared with the main thread.
784 :param bool hide: Whether or not to replay data into ``output``.
785 :param output:
786 Output stream (file-like object) to write data into when not
787 hiding.
788
789 :returns: ``None``.
790
791 .. versionadded:: 1.0
792 """
793 self._handle_output(
794 buffer_, hide, output, reader=self.read_proc_stdout
795 )
796
797 def handle_stderr(
798 self, buffer_: List[str], hide: bool, output: IO

Callers

nothing calls this directly

Calls 1

_handle_outputMethod · 0.95

Tested by

no test coverage detected