mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-22 22:40:01 -04:00
Squash merge branch 15-release into master
This commit is contained in:
@@ -139,9 +139,10 @@ public class IncusCommandView extends CommandViewBase {
|
||||
}
|
||||
|
||||
public ShellControl exec(String container, String user) {
|
||||
return shellControl
|
||||
.subShell(createOpenFunction(container, user, false), createOpenFunction(container, user, true))
|
||||
.withErrorFormatter(IncusCommandView::formatErrorMessage)
|
||||
var sub = shellControl.subShell();
|
||||
sub.setDumbOpen(createOpenFunction(container, user, false));
|
||||
sub.setTerminalOpen(createOpenFunction(container, user, true));
|
||||
return sub.withErrorFormatter(IncusCommandView::formatErrorMessage)
|
||||
.withExceptionConverter(IncusCommandView::convertException)
|
||||
.elevated(requiresElevation());
|
||||
}
|
||||
|
||||
@@ -104,8 +104,8 @@ public class IncusContainerStoreProvider implements ShellStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("incusContainer");
|
||||
public String getId() {
|
||||
return "incusContainer";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -73,8 +73,8 @@ public class IncusInstallStoreProvider implements DataStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("incusInstall");
|
||||
public String getId() {
|
||||
return "incusInstall";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -73,8 +73,8 @@ public class LxdCmdStoreProvider implements DataStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("lxdCmd");
|
||||
public String getId() {
|
||||
return "lxdCmd";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -151,9 +151,10 @@ public class LxdCommandView extends CommandViewBase {
|
||||
}
|
||||
|
||||
public ShellControl exec(String container, String user) {
|
||||
return shellControl
|
||||
.subShell(createOpenFunction(container, user, false), createOpenFunction(container, user, true))
|
||||
.withErrorFormatter(LxdCommandView::formatErrorMessage)
|
||||
var sub = shellControl.subShell();
|
||||
sub.setDumbOpen(createOpenFunction(container, user, false));
|
||||
sub.setTerminalOpen(createOpenFunction(container, user, true));
|
||||
return sub.withErrorFormatter(LxdCommandView::formatErrorMessage)
|
||||
.withExceptionConverter(LxdCommandView::convertException)
|
||||
.elevated(requiresElevation());
|
||||
}
|
||||
|
||||
@@ -101,8 +101,8 @@ public class LxdContainerStoreProvider implements ShellStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("lxd", "lxd_container");
|
||||
public String getId() {
|
||||
return "lxd";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -73,8 +73,8 @@ public class PodmanCmdStoreProvider implements DataStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("podmanCmd");
|
||||
public String getId() {
|
||||
return "podmanCmd";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -112,9 +112,10 @@ public class PodmanCommandView extends CommandViewBase {
|
||||
}
|
||||
|
||||
public ShellControl exec(String container) {
|
||||
return shellControl
|
||||
.subShell(createOpenFunction(container, false), createOpenFunction(container, true))
|
||||
.withErrorFormatter(PodmanCommandView::formatErrorMessage)
|
||||
var sub = shellControl.subShell();
|
||||
sub.setDumbOpen(createOpenFunction(container, false));
|
||||
sub.setTerminalOpen(createOpenFunction(container, true));
|
||||
return sub.withErrorFormatter(PodmanCommandView::formatErrorMessage)
|
||||
.withExceptionConverter(PodmanCommandView::convertException);
|
||||
}
|
||||
|
||||
|
||||
@@ -104,8 +104,8 @@ public class PodmanContainerStoreProvider implements ShellStoreProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPossibleNames() {
|
||||
return List.of("podman", "podman_container");
|
||||
public String getId() {
|
||||
return "podman";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user