From 3c54fcf05244ecba28708e5c41a2d942ae65277d Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 6 Jan 2026 03:07:14 +0100 Subject: [PATCH 1/2] fix sandbox create & improve volumes create ergonomics --- sandbox/mod.ts | 2 +- sandbox/volumes.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sandbox/mod.ts b/sandbox/mod.ts index 65b8b9b..be3af04 100644 --- a/sandbox/mod.ts +++ b/sandbox/mod.ts @@ -31,7 +31,7 @@ export const sandboxCreateCommand = new Command() .option("--ssh", "SSH into the sandbox") .option("--expose-http ", "Expose the specified port") .option("--memory ", "Memory limit for the sandbox") - .arguments("") + .arguments("[command...]") .example( "Create a sandbox and run a command", "new ls /", diff --git a/sandbox/volumes.ts b/sandbox/volumes.ts index 4423550..e756976 100644 --- a/sandbox/volumes.ts +++ b/sandbox/volumes.ts @@ -6,12 +6,12 @@ import { tablePrinter } from "../util.ts"; export const volumesCreateCommand = new Command() .description("Create a volume") - .option("--name ", "The name of the volume", { required: true }) .option("--capacity ", "The capacity of the volume", { required: true, }) .option("--region ", "The region of the volume", { required: true }) - .action(async (options) => { + .arguments("") + .action(async (options, name) => { const org = await ensureOrg(options); const token = await getAuth(options.debug, options.endpoint, true); @@ -22,7 +22,7 @@ export const volumesCreateCommand = new Command() }); const volume = await client.volumes.create({ - slug: options.name, + slug: name, capacity: options.capacity as VolumeInit["capacity"], region: options.region, }); From a99884d9e307fd76e9238a43b09eb67c83714b25 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 6 Jan 2026 03:13:50 +0100 Subject: [PATCH 2/2] clean --- sandbox/volumes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/volumes.ts b/sandbox/volumes.ts index e756976..79579f9 100644 --- a/sandbox/volumes.ts +++ b/sandbox/volumes.ts @@ -10,7 +10,7 @@ export const volumesCreateCommand = new Command() required: true, }) .option("--region ", "The region of the volume", { required: true }) - .arguments("") + .arguments("") .action(async (options, name) => { const org = await ensureOrg(options); const token = await getAuth(options.debug, options.endpoint, true);