mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Prepare for docker contexts
This commit is contained in:
parent
7fb54d4fe1
commit
e6b70ff60c
2 changed files with 16 additions and 0 deletions
13
app/src/main/java/io/xpipe/app/util/CommandView.java
Normal file
13
app/src/main/java/io/xpipe/app/util/CommandView.java
Normal file
|
@ -0,0 +1,13 @@
|
|||
package io.xpipe.app.util;
|
||||
|
||||
import io.xpipe.core.process.CommandBuilder;
|
||||
import io.xpipe.core.process.ShellControl;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
@SuperBuilder
|
||||
public abstract class CommandView {
|
||||
|
||||
protected final ShellControl shellControl;
|
||||
|
||||
protected abstract CommandBuilder base();
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package io.xpipe.core.process;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import io.xpipe.core.util.FailableConsumer;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
@ -83,6 +84,8 @@ public interface CommandControl extends ProcessControl {
|
|||
|
||||
String readStdoutOrThrow() throws Exception;
|
||||
|
||||
JsonNode readStdoutJsonOrThrow() throws Exception;
|
||||
|
||||
String readStderrOrThrow() throws Exception;
|
||||
|
||||
String readStdoutAndWait() throws Exception;
|
||||
|
|
Loading…
Reference in a new issue