mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
fix(cli): match command tree description separator
This commit is contained in:
parent
d4ce275a3c
commit
e8a7018c55
3 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ export function formatCommandTree(node: CommandTreeNode): string {
|
|||
function appendNode(node: CommandTreeNode, depth: number, lines: string[]): void {
|
||||
const indent = ' '.repeat(depth);
|
||||
const aliasPart = node.aliases.length > 0 ? ` (${node.aliases.join(', ')})` : '';
|
||||
const descriptionPart = node.description.length > 0 ? ` - ${node.description}` : '';
|
||||
const descriptionPart = node.description.length > 0 ? ` — ${node.description}` : '';
|
||||
lines.push(`${indent}${node.name}${aliasPart}${descriptionPart}`);
|
||||
|
||||
const sortedChildren = [...node.children].sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue