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:

Parameter Type Description
root string The root label.
children CliTreeNode[] The child tree nodes.

Returns: stringThe formatted ASCII tree string with root.