the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show volume creation time in list output

Add CREATED AT column to the volumes table and show relative
creation times using dayjs with the relativeTime plugin

+10 -2
+10 -2
apps/cli/src/cmd/volume.ts
··· 6 6 import type { Volume } from "../types/volume"; 7 7 import CliTable3 from "cli-table3"; 8 8 import { c } from "../theme"; 9 + import dayjs from "dayjs"; 10 + import relativeTime from "dayjs/plugin/relativeTime"; 11 + 12 + dayjs.extend(relativeTime); 9 13 10 14 export async function listVolumes(sandboxId: string) { 11 15 const token = await getAccessToken(); ··· 23 27 ); 24 28 25 29 const table = new CliTable3({ 26 - head: [c.primary("NAME"), c.primary("PATH")], 30 + head: [c.primary("NAME"), c.primary("PATH"), c.primary("CREATED AT")], 27 31 chars: { 28 32 top: "", 29 33 "top-mid": "", ··· 48 52 }); 49 53 50 54 for (const volume of response.data.volumes) { 51 - table.push([c.secondary(volume.name), volume.path]); 55 + table.push([ 56 + c.secondary(volume.name), 57 + volume.path, 58 + dayjs(volume.createdAt).fromNow(), 59 + ]); 52 60 } 53 61 54 62 consola.log(table.toString());