Skip to content

Commit 0fe7fe8

Browse files
author
Muhammad Hashim
committed
Merge branch 'master' of https://github.com/mhashim6/Commander
2 parents c1ae3db + 068238d commit 0fe7fe8

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("ping").withArgs("google.com").build();
3434
ExecutionOutputPrinter eop = new ExecutionOutputPrinter(new Appender() {
3535

3636
@Override

0 commit comments

Comments
 (0)