mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 19:30:31 +00:00
Fix single scripts not working
This commit is contained in:
@@ -63,9 +63,6 @@ public interface ActionProvider {
|
||||
.sorted(Comparator.comparing(p -> p.type().getModule().getName()))
|
||||
.map(p -> p.get())
|
||||
.toList());
|
||||
for (var p : DataStoreProviders.getAll()) {
|
||||
ALL.addAll(p.getActionProviders());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,8 +195,4 @@ public interface DataStoreProvider {
|
||||
String getId();
|
||||
|
||||
List<Class<?>> getStoreClasses();
|
||||
|
||||
default List<ActionProvider> getActionProviders() {
|
||||
return List.of();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
|
||||
|
||||
ScriptHierarchy hierarchy;
|
||||
|
||||
@Override
|
||||
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunTerminalScriptActionProvider.Action.builder()
|
||||
.ref(ref)
|
||||
.scriptStore(hierarchy.getLeafBase())
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RunTerminalScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunTerminalScriptActionProvider.Action.builder()
|
||||
@@ -84,6 +92,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
|
||||
|
||||
ScriptHierarchy hierarchy;
|
||||
|
||||
@Override
|
||||
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunHubScriptActionProvider.Action.builder()
|
||||
.ref(ref)
|
||||
.scriptStore(hierarchy.getLeafBase())
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RunHubScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunHubScriptActionProvider.Action.builder()
|
||||
@@ -137,6 +153,14 @@ public class RunScriptActionProviderMenu implements HubBranchProvider<ShellStore
|
||||
|
||||
ScriptHierarchy hierarchy;
|
||||
|
||||
@Override
|
||||
public AbstractAction createAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunBackgroundScriptActionProvider.Action.builder()
|
||||
.ref(ref)
|
||||
.scriptStore(hierarchy.getLeafBase())
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RunBackgroundScriptActionProvider.Action createBatchAction(DataStoreEntryRef<ShellStore> ref) {
|
||||
return RunBackgroundScriptActionProvider.Action.builder()
|
||||
|
||||
Reference in New Issue
Block a user