Namespace src/Command

src/Command

Overview

Directory src/Command

file source src/Command/captureOutputAndExitCode.sh

Command::captureOutputAndExitCode

ability to call a command capturing output and exit code but displaying it also to error output to follow command’s progress command output is sent to COMMAND_OUTPUT and stderr as well in realtime using tee

Arguments
  • (command:String[]): the command to execute
Variables set
  • COMMAND_OUTPUT (String): stdout of the command is returned in global variable COMMAND_OUTPUT
Exit codes
    • exit code of the command
Output on stderr
  • command output
Or, if you want, you can alternatively use the GitHub discussion Q&A for feedback and questions.