Ssh key file fixes

This commit is contained in:
crschnick
2023-12-19 15:31:06 +00:00
parent 09a419f628
commit aa71a72f58
7 changed files with 35 additions and 35 deletions

View File

@@ -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) {

View File

@@ -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);