mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-24 08:18:33 -04:00
Allow for finer control of write logging
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -208,7 +208,9 @@ public interface ShellControl extends ProcessControl {
|
||||
ShellControl subShell(
|
||||
FailableFunction<ShellControl, String, Exception> 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user