fix: route remote cli through frontend
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { spawn } from "node:child_process";
|
||||
import { type UniDeskConfig, repoRoot } from "./config";
|
||||
|
||||
interface ParsedSshArgs {
|
||||
export interface ParsedSshArgs {
|
||||
remoteCommand: string | null;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ const sshOptionsWithValue = new Set([
|
||||
"-B", "-b", "-c", "-D", "-E", "-e", "-F", "-I", "-i", "-J", "-L", "-l", "-m", "-O", "-o", "-p", "-Q", "-R", "-S", "-W", "-w",
|
||||
]);
|
||||
|
||||
function parseSshArgs(args: string[]): ParsedSshArgs {
|
||||
export function parseSshArgs(args: string[]): ParsedSshArgs {
|
||||
const remote: string[] = [];
|
||||
let remoteStarted = false;
|
||||
for (let index = 0; index < args.length; index += 1) {
|
||||
|
||||
Reference in New Issue
Block a user