Skip to content
ConsoleMonster
Cmdlet

New-ConsoleTree

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.Tree

Creates a console tree from nested hashtables.

Syntax

New-ConsoleTree [-Data] <IDictionary> [-Title <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a console tree from nested hashtables.

Each key becomes a node. A nested hashtable (or ordered dictionary) becomes child nodes; an array becomes leaf nodes; any other value is shown as a muted note after the key. Use [ordered] to keep order.

Examples

Authored help example

EXAMPLE 1

New-ConsoleTree -Data @{}

Parameters

-Data IDictionary requiredposition: 0
Nested hashtables describing the tree.
-Title Object optional
The root label; without it the top-level keys are the roots.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.