Skip to content

Commit 9b1fe69

Browse files
committed
cli option should have more priority
1 parent ffcc501 commit 9b1fe69

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sandbox.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getAppFromConfig, readConfig } from "./config.ts";
55
import { renderTemporalTimestamp, withApp } from "./util.ts";
66
import { createTrpcClient } from "./auth.ts";
77
import type { GlobalOptions } from "./main.ts";
8+
import { get } from "node:http";
89

910
type SandboxContext = GlobalOptions & {
1011
org?: string;
@@ -156,8 +157,8 @@ export const sandboxSshCommand = new Command<SandboxContext>()
156157
});
157158

158159
async function ensureOrg(options: SandboxContext) {
159-
let { org } = getAppFromConfig(await readConfig(Deno.cwd(), options.config));
160-
org ??= options.org;
160+
const org = options.org ??
161+
getAppFromConfig(await readConfig(Deno.cwd(), options.config)).org;
161162

162163
return (await withApp(
163164
options.debug,

0 commit comments

Comments
 (0)