Prepare for docker contexts

This commit is contained in:
crschnick 2024-05-28 01:58:33 +00:00
parent 7fb54d4fe1
commit e6b70ff60c
2 changed files with 16 additions and 0 deletions

View 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();
}

View file

@ -1,5 +1,6 @@
package io.xpipe.core.process; package io.xpipe.core.process;
import com.fasterxml.jackson.databind.JsonNode;
import io.xpipe.core.util.FailableConsumer; import io.xpipe.core.util.FailableConsumer;
import java.io.InputStream; import java.io.InputStream;
@ -83,6 +84,8 @@ public interface CommandControl extends ProcessControl {
String readStdoutOrThrow() throws Exception; String readStdoutOrThrow() throws Exception;
JsonNode readStdoutJsonOrThrow() throws Exception;
String readStderrOrThrow() throws Exception; String readStderrOrThrow() throws Exception;
String readStdoutAndWait() throws Exception; String readStdoutAndWait() throws Exception;