Cli.formatAsciiTreeWithRoot method
Cli › formatAsciiTreeWithRoot
Unofficial
Format a root label and child nodes as an ASCII tree.Signature:
formatAsciiTreeWithRoot(root: string, children: CliTreeNode[]): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| root | string | The root label. |
| children | CliTreeNode[] | The child tree nodes. |
Returns: string — The formatted ASCII tree string with root.