Allow for finer control of write logging

This commit is contained in:
crschnick 2024-01-19 17:25:18 +00:00
parent ac865b4a92
commit a1ec6cb422
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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;