Class CommandRunner
- java.lang.Object
-
- com.google.cloud.tools.managedcloudsdk.command.CommandRunner
-
public class CommandRunner extends Object
Execute a command and redirect output to handlers.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandRunner
newRunner()
void
run(List<String> command, Path workingDirectory, Map<String,String> environment, ConsoleListener consoleListener)
Run the command and wait for completion.
-
-
-
Method Detail
-
run
public void run(List<String> command, @Nullable Path workingDirectory, @Nullable Map<String,String> environment, ConsoleListener consoleListener) throws InterruptedException, CommandExitException, CommandExecutionException
Run the command and wait for completion.
-
newRunner
public static CommandRunner newRunner()
-
-