diff --git a/core/src/main/java/io/xpipe/core/process/ProcessControl.java b/core/src/main/java/io/xpipe/core/process/ProcessControl.java index eb7bc4243..af04754c8 100644 --- a/core/src/main/java/io/xpipe/core/process/ProcessControl.java +++ b/core/src/main/java/io/xpipe/core/process/ProcessControl.java @@ -28,6 +28,8 @@ public interface ProcessControl extends AutoCloseable { void writeLine(String line) throws IOException; + void writeLine(String line, boolean log) throws IOException; + void write(byte[] b) throws IOException; @Override diff --git a/core/src/main/java/io/xpipe/core/process/ShellControl.java b/core/src/main/java/io/xpipe/core/process/ShellControl.java index 1c35787e3..480ebdb68 100644 --- a/core/src/main/java/io/xpipe/core/process/ShellControl.java +++ b/core/src/main/java/io/xpipe/core/process/ShellControl.java @@ -208,7 +208,9 @@ public interface ShellControl extends ProcessControl { ShellControl subShell( FailableFunction command, TerminalOpenFunction terminalCommand); - void executeLine(String command) throws Exception; + void writeLineAndReadEcho(String command) throws Exception; + + void writeLineAndReadEcho(String command, boolean log) throws Exception; void cd(String directory) throws Exception;