Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 1 addition & 1 deletion sandbox/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const sandboxCreateCommand = new Command<SandboxContext>()
.option("--ssh", "SSH into the sandbox")
.option("--expose-http <port:number>", "Expose the specified port")
.option("--memory <value:string>", "Memory limit for the sandbox")
.arguments("<command...>")
.arguments("[command...]")
.example(
"Create a sandbox and run a command",
"new ls /",
Expand Down
6 changes: 3 additions & 3 deletions sandbox/volumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { tablePrinter } from "../util.ts";

export const volumesCreateCommand = new Command<SandboxContext>()
.description("Create a volume")
.option("--name <string>", "The name of the volume", { required: true })
.option("--capacity <string|number>", "The capacity of the volume", {
required: true,
})
.option("--region <string>", "The region of the volume", { required: true })
.action(async (options) => {
.arguments("<name:string>")
.action(async (options, name) => {
const org = await ensureOrg(options);
const token = await getAuth(options.debug, options.endpoint, true);

Expand All @@ -22,7 +22,7 @@ export const volumesCreateCommand = new Command<SandboxContext>()
});

const volume = await client.volumes.create({
slug: options.name,
slug: name,
capacity: options.capacity as VolumeInit["capacity"],
region: options.region,
});
Expand Down