Skip to content

Commit

Permalink
maxLen and aliases comma-split
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Dec 3, 2024
1 parent 314ce29 commit b80f727
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/cli/src/commands/sandbox/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/template/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b80f727

Please sign in to comment.