File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ The library is thread-safe, can be used to execute multiple commands asynchronou
7
7
If you want to execute a command, and redirect the output to the ` console ` :
8
8
9
9
try {
10
- CommandExecutor.execute(new CommandBuilder().forCommandLine( "ping google.com").build());
10
+ CommandExecutor.execute(new CommandBuilder("ping google.com").build());
11
11
}
12
12
catch (IOException e) {
13
13
e.printStackTrace();
@@ -28,9 +28,9 @@ However, this library gives you more control over the commands being executed;
28
28
29
29
30
30
------
31
- An example:
31
+ An advanced example:
32
32
33
- Command cmd = new CommandBuilder("adb devices").withOptions("-l").build();
33
+ Command cmd = new CommandBuilder().forCommandLine( "adb devices").withOptions("-l").build();
34
34
ExecutionOutputPrinter eop = new ExecutionOutputPrinter(new Appender() {
35
35
36
36
@Override
You can’t perform that action at this time.
0 commit comments