exec method
Future<Result<ShellExecResult, ExecutionError> >
exec(
- String command, {
- ShellExecOptions? options,
override
Executes a shell command. Must never throw: all failures are encoded in the returned Result.
Implementation
@override
Future<Result<ShellExecResult, ExecutionError>> exec(
String command, {
ShellExecOptions? options,
}) {
if (_secrets.isEmpty && _knownNames.isEmpty) {
return _delegate.exec(command, options: options);
}
return _delegate.exec(command, options: _optionsWithMergedEnv(options));
}