baur icon indicating copy to clipboard operation
baur copied to clipboard

Refactor exec package

Open fho opened this issue 4 years ago • 0 comments

  • do not add any characters (newlines) to the command output that is returned, output should not be modified
  • allow to specify io.Writers for stdout and stderr output of the command, print the output of the command to those instead of to the debug function
  • only record the last N lines for output that is returned as part of the error when something fails, this prevents that we have to buffer everything a commands print, which can require a lot of memory
  • when "baur run -o" is executed, show the stdout and stderr output of tasks in different colors

fho avatar May 10 '21 12:05 fho