refactor(runner): rename exec vararg parameter to commands for clarity

This commit is contained in:
2026-03-15 22:41:46 +08:00
parent d55b849747
commit c4b8c2a858

View File

@@ -27,13 +27,13 @@ public class CommandExecutionService {
return exec(commands.toArray(new String[0]));
}
public Result exec(String... command) {
public Result exec(String... commands) {
Result result = new Result();
List<String> output = new ArrayList<>();
List<String> error = new ArrayList<>();
try {
Process process = new ProcessBuilder(command)
Process process = new ProcessBuilder(commands)
.redirectErrorStream(false)
.start();