Skip to content

Commit

Permalink
doc for exec_get_output_streamed()
Browse files Browse the repository at this point in the history
  • Loading branch information
Umit Kablan committed Oct 8, 2024
1 parent 314fd94 commit bf490be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pleskdistup/common/src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def exec_get_output_streamed(
process_stderr_line: typing.Optional[typing.Callable[[str], None]],
**kwargs,
) -> int:
'''
Allows to get stdout/stderr by streaming line by line, by calling callbacks
and returns process exit code
'''
kwargs["stdout"] = (subprocess.DEVNULL if process_stdout_line is None
else subprocess.PIPE)
kwargs["stderr"] = (subprocess.DEVNULL if process_stderr_line is None
Expand Down

0 comments on commit bf490be

Please sign in to comment.