We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffcc501 commit 9b1fe69Copy full SHA for 9b1fe69
1 file changed
sandbox.ts
@@ -5,6 +5,7 @@ import { getAppFromConfig, readConfig } from "./config.ts";
5
import { renderTemporalTimestamp, withApp } from "./util.ts";
6
import { createTrpcClient } from "./auth.ts";
7
import type { GlobalOptions } from "./main.ts";
8
+import { get } from "node:http";
9
10
type SandboxContext = GlobalOptions & {
11
org?: string;
@@ -156,8 +157,8 @@ export const sandboxSshCommand = new Command<SandboxContext>()
156
157
});
158
159
async function ensureOrg(options: SandboxContext) {
- let { org } = getAppFromConfig(await readConfig(Deno.cwd(), options.config));
160
- org ??= options.org;
+ const org = options.org ??
161
+ getAppFromConfig(await readConfig(Deno.cwd(), options.config)).org;
162
163
return (await withApp(
164
options.debug,
0 commit comments