Skip to content

Commit b1b89b3

Browse files
committed
fix(cli): terminal completions
1 parent 45b4b58 commit b1b89b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

addons/cli/src/main/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ ${
306306
type: 'command' as const,
307307
query,
308308
value: item.command,
309-
description: commas.i18n.translate(item.usage ?? '')
310-
+ (item.description ? '\n\n' + commas.i18n.translate(item.description) : ''),
309+
description: [
310+
item.usage ? commas.i18n.translate(item.usage) : '',
311+
item.description ? commas.i18n.translate(item.description) : '',
312+
].filter(Boolean).join('\n\n'),
311313
}))
312314
}
313315
return []

0 commit comments

Comments
 (0)