Method ExecuteTerminalCommand
ExecuteTerminalCommand(string, string?, bool, bool)
Executes terminal command redirecting output and error streams to Log(object?, LogItemKind).
public static (string? Output, string? Error, int ExitCode) ExecuteTerminalCommand(string command, string? folder = null, bool waitResult = false, bool logStdOut = true)
Parameters
command
stringTerminal command.
folder
stringValue of WorkingDirectory.
waitResult
boolWhether to wait until command finishes its execution.
logStdOut
boolSpecifies whether to hook and log stdout and stderr.