mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-19 13:58:37 -04:00
Rework browser actions for vscode action
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user