mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-26 03:06:37 +00:00
Prepare for docker contexts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user