mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-07 23:51:28 +00:00
Properly implement launch command
This commit is contained in:
1 parent
cdfd7dc67d
commit
8f653880ba
9 files changed
+288
-132
No files matched your search
@@ -0,0 +1,36 @@
|
||||
package io.xpipe.beacon.api;
|
||||
|
||||
import io.xpipe.beacon.BeaconInterface;
|
||||
import lombok.Builder;
|
||||
import lombok.NonNull;
|
||||
import lombok.Value;
|
||||
import lombok.extern.jackson.Jacksonized;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class TerminalExternalLaunchExchange extends BeaconInterface<TerminalExternalLaunchExchange.Request> {
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return "/terminal/externalLaunch";
|
||||
}
|
||||
|
||||
@Jacksonized
|
||||
@Builder
|
||||
@Value
|
||||
public static class Request {
|
||||
@NonNull
|
||||
String connection;
|
||||
|
||||
@NonNull
|
||||
List<String> arguments;
|
||||
}
|
||||
|
||||
@Jacksonized
|
||||
@Builder
|
||||
@Value
|
||||
public static class Response {
|
||||
@NonNull
|
||||
List<String> command;
|
||||
}
|
||||
}
|
||||
@@ -49,6 +49,7 @@ open module io.xpipe.beacon {
|
||||
TerminalPrepareExchange,
|
||||
TerminalWaitExchange,
|
||||
TerminalLaunchExchange,
|
||||
TerminalExternalLaunchExchange,
|
||||
SshLaunchExchange,
|
||||
FsReadExchange,
|
||||
FsBlobExchange,
|
||||
|
||||
Reference in new issue
Block a user