mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(runner): add exec(List<String>) overload in CommandExecutionService
This commit is contained in:
@@ -23,6 +23,10 @@ public class CommandExecutionService {
|
|||||||
return commands;
|
return commands;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Result exec(List<String> commands) {
|
||||||
|
return exec(commands.toArray(new String[0]));
|
||||||
|
}
|
||||||
|
|
||||||
public Result exec(String... command) {
|
public Result exec(String... command) {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
List<String> output = new ArrayList<>();
|
List<String> output = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user