execAndWaitStdout method
Calls exec than waitStdout
.
Implementation
Future<Output?> execAndWaitStdout(
String containerName, String command, List<String> args,
{int? desiredExitCode}) async {
var process = await exec(containerName, command, args);
if (process == null) return null;
return process.waitStdout(desiredExitCode: desiredExitCode);
}