Method ExecuteTerminalCommand
ExecuteTerminalCommand(string, string?, bool, bool)
Executes terminal command redirecting output and error streams to Log(object?, LogItemKind).
public static AppUtils.ExecuteTerminalCommandResult 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.
Returns
- AppUtils.ExecuteTerminalCommandResult
Result of the command execution in case when
waitResult
istrue
; otherwisenull
.