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
commandstringTerminal command.
folderstringValue of WorkingDirectory.
waitResultboolWhether to wait until command finishes its execution.
logStdOutboolSpecifies whether to hook and log stdout and stderr.
Returns
- AppUtils.ExecuteTerminalCommandResult
Result of the command execution in case when
waitResultistrue; otherwisenull.