mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 16:40:58 -04:00
Ssh key file fixes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package io.xpipe.core.process;
|
||||
|
||||
import io.xpipe.core.store.ShellStore;
|
||||
import io.xpipe.core.store.StatefulDataStore;
|
||||
import io.xpipe.core.util.*;
|
||||
import lombok.NonNull;
|
||||
@@ -16,6 +17,10 @@ import java.util.function.Predicate;
|
||||
|
||||
public interface ShellControl extends ProcessControl {
|
||||
|
||||
Optional<ShellStore> getSourceStore();
|
||||
|
||||
ShellControl withSourceStore(ShellStore store);
|
||||
|
||||
List<ScriptSnippet> getInitCommands();
|
||||
|
||||
ShellControl withTargetTerminalShellDialect(ShellDialect d);
|
||||
@@ -44,6 +49,8 @@ public interface ShellControl extends ProcessControl {
|
||||
|
||||
ShellControl onInit(FailableConsumer<ShellControl, Exception> pc);
|
||||
|
||||
ShellControl onPreInit(FailableConsumer<ShellControl, Exception> pc);
|
||||
|
||||
default <T extends ShellStoreState> ShellControl withShellStateInit(StatefulDataStore<T> store) {
|
||||
return onInit(shellControl -> {
|
||||
var s = store.getState();
|
||||
@@ -169,6 +176,10 @@ public interface ShellControl extends ProcessControl {
|
||||
|
||||
ShellControl additionalTimeout(int ms);
|
||||
|
||||
default ShellControl disableTimeout() {
|
||||
return additionalTimeout(Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
FailableSupplier<SecretValue> getElevationPassword();
|
||||
|
||||
default ShellControl subShell(@NonNull ShellDialect type) {
|
||||
|
||||
@@ -129,7 +129,7 @@ public interface ShellDialect {
|
||||
|
||||
String getScriptPermissionsCommand(String file);
|
||||
|
||||
String prepareAskpassContent(ShellControl sc, String fileName, List<String> s) throws Exception;
|
||||
String prepareAskpassContent(ShellControl sc, String fileName, List<String> s, String errorMessage) throws Exception;
|
||||
|
||||
String getSetEnvironmentVariableCommand(String variable, String value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user