Shell.executeEnforceStatusZero

Executes a command via std.process.executeShell, enforcing that the process' exit code was 0.

class Shell
static
executeEnforceStatusZero
(
string command
)

Parameters

command string

The command string to execute.

Return Value

Type: Result

The Result of the execution.

Throws

Exception if the process' exit code was anything other than 0.

Meta