diff --git a/core/src/main/java/io/xpipe/core/process/ShellOpenFunction.java b/core/src/main/java/io/xpipe/core/process/ShellOpenFunction.java index 8f323640d..ee620918c 100644 --- a/core/src/main/java/io/xpipe/core/process/ShellOpenFunction.java +++ b/core/src/main/java/io/xpipe/core/process/ShellOpenFunction.java @@ -4,6 +4,20 @@ import lombok.NonNull; public interface ShellOpenFunction { + static ShellOpenFunction unsupported() { + return new ShellOpenFunction() { + @Override + public CommandBuilder prepareWithoutInitCommand() { + throw new UnsupportedOperationException(); + } + + @Override + public CommandBuilder prepareWithInitCommand(@NonNull String command) { + throw new UnsupportedOperationException(); + } + }; + } + static ShellOpenFunction of(String b) { return new ShellOpenFunction() { @Override