mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Allow for finer control of write logging
This commit is contained in:
parent
ac865b4a92
commit
a1ec6cb422
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue