Skip to content

Commit ee8da12

Browse files
authored
fix: allow interactive flow again (#74)
1 parent 68b523a commit ee8da12

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

deploy/create/mod.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ export const createCommand = new Command<GlobalContext>()
199199
options.workingDirectory ||
200200
options.staticDir ||
201201
options.singlePageApp ||
202-
options.buildTimeout ||
203-
options.buildMemoryLimit ||
204202
options.region
205203
) {
206204
const org = required(options.org, "org");

deploy/mod.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const logsCommand = new Command<GlobalContext>()
106106
const seenIds = new Set();
107107
let onceConnected = false;
108108

109-
const sub = await trpcClient.subscription(
109+
const sub = trpcClient.subscription(
110110
"apps.logs",
111111
{
112112
org,
@@ -219,9 +219,10 @@ deploy your local directory to the specified application.`)
219219
const { app, created } = await getApp(
220220
options,
221221
config,
222-
false,
222+
true,
223223
org,
224224
options.app,
225+
rootPath,
225226
);
226227

227228
await publish(

sandbox/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ export const sandboxCreateCommand = new Command<SandboxContext>()
4848
)
4949
.option(
5050
"--volume <volume:string>",
51-
"Mount a volume to the sandbox. Needs to be in format <idOrSlug>:<path>",
51+
"Mount a volume to the sandbox. Needs to be in format <id-or-slug>:<path>",
5252
{
5353
collect: true,
5454
value: (value, previous = {}): Record<string, VolumeId | VolumeSlug> => {
5555
const separatorIndex = value.indexOf(":");
5656
if (separatorIndex === -1) {
5757
throw new ValidationError(
58-
"Volume must be specified as <idOrSlug>:<path>",
58+
"Volume must be specified as <id-or-slug>:<path>",
5959
);
6060
}
6161
const name = value.slice(0, separatorIndex);

sandbox/snapshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { actionHandler, getOrg } from "../config.ts";
77

88
export const snapshotsCreateCommand = new Command<SandboxContext>()
99
.description("Create a snapshot from a volume")
10-
.arguments("<volumeIdOrSlug:string> <snapshotSlug:string>")
10+
.arguments("<volumeid-or-slug:string> <snapshotSlug:string>")
1111
.action(
1212
actionHandler(async (config, options, volumeIdOrSlug, snapshotSlug) => {
1313
config.noCreate();
@@ -65,7 +65,7 @@ export const snapshotsListCommand = new Command<SandboxContext>()
6565

6666
export const snapshotsDeleteCommand = new Command<SandboxContext>()
6767
.description("Remove a snapshot")
68-
.arguments("<idOrSlug:string>")
68+
.arguments("<id-or-slug:string>")
6969
.action(actionHandler(async (config, options, idOrSlug) => {
7070
config.noCreate();
7171
const org = await getOrg(options, config, options.org);

sandbox/volumes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const volumesListCommand = new Command<SandboxContext>()
7676

7777
export const volumesDeleteCommand = new Command<SandboxContext>()
7878
.description("Remove a volume")
79-
.arguments("<idOrSlug:string>")
79+
.arguments("<id-or-slug:string>")
8080
.action(actionHandler(async (config, options, idOrSlug) => {
8181
config.noCreate();
8282

@@ -94,7 +94,7 @@ export const volumesDeleteCommand = new Command<SandboxContext>()
9494

9595
export const volumesSnapshotCommand = new Command<SandboxContext>()
9696
.description("Snapshot a volume")
97-
.arguments("<volumeIdOrSlug:string> <snapshotSlug:string>")
97+
.arguments("<volume-id-or-slug:string> <snapshotSlug:string>")
9898
.action(
9999
actionHandler(async (config, options, volumeIdOrSlug, snapshotSlug) => {
100100
config.noCreate();

0 commit comments

Comments
 (0)