Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

maxLen and aliases comma-split

Mish Ushakovb80f72759aa8
diff --git a/packages/cli/src/commands/sandbox/list.ts b/packages/cli/src/commands/sandbox/list.ts
index 603a18ef5..7f12e67e4 100644
--- a/packages/cli/src/commands/sandbox/list.ts
+++ b/packages/cli/src/commands/sandbox/list.ts
@@ -19,7 +19,12 @@ export const listCommand = new commander.Command('list')
title: 'Running sandboxes',
columns: [
{ name: 'sandboxID', alignment: 'left', title: 'Sandbox ID' },
- { name: 'templateID', alignment: 'left', title: 'Template ID' },
+ {
+ name: 'templateID',
+ alignment: 'left',
+ title: 'Template ID',
+ maxLen: 20,
+ },
{ name: 'alias', alignment: 'left', title: 'Alias' },
{ name: 'startedAt', alignment: 'left', title: 'Started at' },
{ name: 'endAt', alignment: 'left', title: 'End at' },
diff --git a/packages/cli/src/commands/template/list.ts b/packages/cli/src/commands/template/list.ts
index 075e4e868..6c4fe48c9 100644
--- a/packages/cli/src/commands/template/list.ts
+++ b/packages/cli/src/commands/template/list.ts
@@ -38,6 +38,7 @@ export const listCommand = new commander.Command('list')
alignment: 'left',
title: 'Template Name',
color: 'orange',
+ maxLen: 20,
},
{ name: 'cpuCount', alignment: 'right', title: 'vCPUs' },
{ name: 'memoryMB', alignment: 'right', title: 'RAM MiB' },
diff --git a/packages/cli/src/utils/format.ts b/packages/cli/src/utils/format.ts
index 8cedde29e..85433b107 100644
--- a/packages/cli/src/utils/format.ts
+++ b/packages/cli/src/utils/format.ts
@@ -100,7 +100,7 @@ export function withUnderline(content: string) {
export function listAliases(aliases: string[] | undefined) {
if (!aliases) return undefined
- return aliases.join(' | ')
+ return aliases.join(', ')
}
export function asTypescript(code: string) {