Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions deploy/create/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ export const createCommand = new Command<GlobalContext>()
options.workingDirectory ||
options.staticDir ||
options.singlePageApp ||
options.buildTimeout ||
options.buildMemoryLimit ||
options.region
) {
const org = required(options.org, "org");
Expand Down
5 changes: 3 additions & 2 deletions deploy/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const logsCommand = new Command<GlobalContext>()
const seenIds = new Set();
let onceConnected = false;

const sub = await trpcClient.subscription(
const sub = trpcClient.subscription(
"apps.logs",
{
org,
Expand Down Expand Up @@ -219,9 +219,10 @@ deploy your local directory to the specified application.`)
const { app, created } = await getApp(
options,
config,
false,
true,
org,
options.app,
rootPath,
);

await publish(
Expand Down
4 changes: 2 additions & 2 deletions sandbox/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export const sandboxCreateCommand = new Command<SandboxContext>()
)
.option(
"--volume <volume:string>",
"Mount a volume to the sandbox. Needs to be in format <idOrSlug>:<path>",
"Mount a volume to the sandbox. Needs to be in format <id-or-slug>:<path>",
{
collect: true,
value: (value, previous = {}): Record<string, VolumeId | VolumeSlug> => {
const separatorIndex = value.indexOf(":");
if (separatorIndex === -1) {
throw new ValidationError(
"Volume must be specified as <idOrSlug>:<path>",
"Volume must be specified as <id-or-slug>:<path>",
);
}
const name = value.slice(0, separatorIndex);
Expand Down
4 changes: 2 additions & 2 deletions sandbox/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { actionHandler, getOrg } from "../config.ts";

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

export const snapshotsDeleteCommand = new Command<SandboxContext>()
.description("Remove a snapshot")
.arguments("<idOrSlug:string>")
.arguments("<id-or-slug:string>")
.action(actionHandler(async (config, options, idOrSlug) => {
config.noCreate();
const org = await getOrg(options, config, options.org);
Expand Down
4 changes: 2 additions & 2 deletions sandbox/volumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const volumesListCommand = new Command<SandboxContext>()

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

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

export const volumesSnapshotCommand = new Command<SandboxContext>()
.description("Snapshot a volume")
.arguments("<volumeIdOrSlug:string> <snapshotSlug:string>")
.arguments("<volume-id-or-slug:string> <snapshotSlug:string>")
.action(
actionHandler(async (config, options, volumeIdOrSlug, snapshotSlug) => {
config.noCreate();
Expand Down