Skip to content

Cli.formatAsciiTreeWithRoot method

Cli › formatAsciiTreeWithRoot

Unofficial

Format a root label and child nodes as an ASCII tree.

Signature:

formatAsciiTreeWithRoot(root: string, children: CliTreeNode[]): string

Parameters:

ParameterTypeDescription
rootstringThe root label.
childrenCliTreeNode[]The child tree nodes.

Returns: stringThe formatted ASCII tree string with root.