mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +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) throws IOException;
|
||||||
|
|
||||||
|
void writeLine(String line, boolean log) throws IOException;
|
||||||
|
|
||||||
void write(byte[] b) throws IOException;
|
void write(byte[] b) throws IOException;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -208,7 +208,9 @@ public interface ShellControl extends ProcessControl {
|
||||||
ShellControl subShell(
|
ShellControl subShell(
|
||||||
FailableFunction<ShellControl, String, Exception> command, TerminalOpenFunction terminalCommand);
|
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;
|
void cd(String directory) throws Exception;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue