Skip to content

Commit cdfe3d5

Browse files
committed
implement extend subcommand
1 parent 9516a69 commit cdfe3d5

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"imports": {
1818
"@cfa/gitignore-parser": "jsr:@cfa/gitignore-parser@^0.1.4",
1919
"@cliffy/command": "jsr:@cliffy/command@^1.0.0-rc.8",
20-
"@deno/sandbox": "jsr:@deno/sandbox@^0.4.1",
20+
"@deno/sandbox": "jsr:@deno/sandbox@^0.4.3",
2121
"@std/cli": "jsr:@std/cli@1.0.22",
2222
"@std/dotenv": "jsr:@std/dotenv@^0.225.5",
2323
"@std/encoding": "jsr:@std/encoding@^1.0.10",

deno.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandbox.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,17 @@ export const sandboxRunCommand = new Command<SandboxContext>()
364364
Deno.exit(status.code);
365365
});
366366

367+
/*
368+
export const sandboxExtendCommand = new Command<SandboxContext>()
369+
.description("Extend the lifetime of a running sandbox")
370+
.arguments("<sandbox-id:string> <lifetime:string>")
371+
.action(async (options, sandboxId, lifetime) => {
372+
await using sandbox = await connectToSandbox(options, sandboxId);
373+
374+
console.log(await sandbox.extendLifetime(lifetime));
375+
});
376+
*/
377+
367378
/*
368379
function groupPathsBySandbox(paths: string[]): Record<string, string[]> {
369380
const groups = {};
@@ -550,4 +561,5 @@ export const sandboxCommand = new Command<GlobalOptions>()
550561
.alias("cp")
551562
.command("exec", sandboxExecCommand)
552563
.command("run", sandboxRunCommand)
564+
//.command("extend", sandboxExtendCommand)
553565
.command("ssh", sandboxSshCommand);

0 commit comments

Comments
 (0)