Rework browser actions for vscode action

This commit is contained in:
crschnick
2023-12-18 04:24:51 +00:00
parent b668028547
commit 4760b4a443
8 changed files with 49 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ public class CommandBuilder {
return sub.buildSimple();
}
return sub.build(sc);
return sub.buildString(sc);
});
return this;
}
@@ -188,7 +188,7 @@ public class CommandBuilder {
return String.join(" ", list);
}
public String build(ShellControl sc) throws Exception {
public String buildString(ShellControl sc) throws Exception {
var s = buildBase(sc);
LinkedHashMap<String, String> map = new LinkedHashMap<>();
for (var e : environmentVariables.entrySet()) {
@@ -200,7 +200,7 @@ public class CommandBuilder {
return sc.getShellDialect().addInlineVariablesToCommand(map, s);
}
public CommandControl buildCommand(ShellControl sc) {
public CommandControl build(ShellControl sc) {
return sc.command(this);
}

View File

@@ -234,7 +234,7 @@ public interface ShellControl extends ProcessControl {
return command(sc-> {
var b = CommandBuilder.of();
builder.accept(b);
return b.build(sc);
return b.buildString(sc);
});
}
@@ -243,7 +243,7 @@ public interface ShellControl extends ProcessControl {
}
default CommandControl command(CommandBuilder builder) {
return command(shellProcessControl -> builder.build(shellProcessControl));
return command(shellProcessControl -> builder.buildString(shellProcessControl));
}
void exitAndWait() throws IOException;