Skip to content

Commit eda8f9c

Browse files
author
Muhammad Hashim
authored
Update README.md
1 parent f853a4b commit eda8f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The library is thread-safe, can be used to execute multiple commands asynchronou
77
If you want to execute a command, and redirect the output to the `console`:
88

99
try {
10-
CommandExecutor.execute(new CommandBuilder().forCommandLine("ping google.com").build());
10+
CommandExecutor.execute(new CommandBuilder("ping google.com").build());
1111
}
1212
catch (IOException e) {
1313
e.printStackTrace();
@@ -28,9 +28,9 @@ However, this library gives you more control over the commands being executed;
2828

2929

3030
------
31-
An example:
31+
An advanced example:
3232

33-
Command cmd = new CommandBuilder("adb devices").withOptions("-l").build();
33+
Command cmd = new CommandBuilder().forCommandLine("adb devices").withOptions("-l").build();
3434
ExecutionOutputPrinter eop = new ExecutionOutputPrinter(new Appender() {
3535

3636
@Override

0 commit comments

Comments
 (0)