mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-26 10:25:44 +00:00
Rework
This commit is contained in:
@@ -82,6 +82,7 @@ public class SshAgentKeyListComp extends SimpleRegionBuilder {
|
||||
content.setPadding(new Insets(10));
|
||||
content.setFillWidth(true);
|
||||
var header = new Label(AppI18n.get("sshAgentHasKeys"));
|
||||
header.getStyleClass().add(Styles.TEXT_BOLD);
|
||||
header.setPadding(new Insets(0, 0, 8, 8));
|
||||
content.getChildren().add(header);
|
||||
for (SshAgentKeyList.Entry entry : list) {
|
||||
|
||||
@@ -248,6 +248,17 @@ public interface ShellControl extends ProcessControl {
|
||||
}
|
||||
}
|
||||
|
||||
default void enforcePowershell(FailableConsumer<ShellControl, Exception> sc)
|
||||
throws Exception {
|
||||
if (ShellDialects.isPowershell(this)) {
|
||||
sc.accept(this);
|
||||
} else {
|
||||
try (var sub = subShell(ShellDialects.POWERSHELL).start()) {
|
||||
sc.accept(sub);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default <T> T enforceDialect(@NonNull ShellDialect type, FailableFunction<ShellControl, T, Exception> sc)
|
||||
throws Exception {
|
||||
if (type.equals(getShellDialect())) {
|
||||
|
||||
Generated
+4
-2
@@ -2048,7 +2048,7 @@ passwordManagerKeyStrategyDescription=How to retrieve SSH keys stored in the pas
|
||||
sshAgentNoKeys=The agent does not have any keys at the moment
|
||||
sshAgentHasKeys=The agent currently offers the following keys:
|
||||
networkInterfacesBroadcastNone=No network interfaces could automatically be detected
|
||||
networkInterfacesBroadcastFound=The gateway system has the following broadcast addresses:
|
||||
networkInterfacesBroadcastFound=The broadcast host has the following broadcast addresses:
|
||||
networkInterfacesNone=No network interfaces could automatically be detected
|
||||
networkInterfacesFound=The system has the following network interfaces:
|
||||
passwordManagerNoAgentSupport=Password manager does not support retrieving SSH keys via an agent
|
||||
@@ -2207,7 +2207,9 @@ wakeOnLanHost=Target host
|
||||
wakeOnLanHostDescription=The system to wake
|
||||
wakeOnLanGateway=Broadcast host
|
||||
wakeOnLanGatewayDescription=The system from which to send the broadcast
|
||||
wakeOnLanAddress=Network interface
|
||||
wakeOnLanBroadcastAddress=Broadcast address
|
||||
wakeOnLanBroadcastAddressDescription=The broadcast address to send the packet to
|
||||
wakeOnLanAddress=MAC address
|
||||
wakeOnLanAddressDescription=The MAC address of the target network interface
|
||||
wakeOnLan.displayName=Wake-on-Lan
|
||||
wakeOnLan.displayDescription=Wake a sleeping computer by sending a magic packet
|
||||
|
||||
Reference in New Issue
Block a user