Skip to content
ConsoleMonster
Cmdlet

Show-Console

Module ConsoleMonster
Inputs
System.Management.Automation.PSObject

Shows pipeline input in the view that fits it best.

Syntax

Show-Console [-Chart] [-ChildProperty <String>] [-Depth <Int32>] [[-InputObject] <PSObject>] [-Property <Object[]>] [-Title <Object>] [-View <ConsoleViewKind>] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Shows pipeline input in the view that fits it best.

One object becomes an inspector; objects of one shape a table (cards when the window is narrow), using their DefaultDisplayPropertySet and presenters by type (bytes for Length and Size, dates, durations, Yes/No, status markers for enums such as Running/Stopped); hierarchical objects (a child collection of the same type, or -ChildProperty) a tree; a numeric series a bar chart; strings highlighted code when a language is detected, otherwise text. -View overrides the choice; Grid opens the interactive Show-ConsoleGrid and returns what you pick.

Examples

Authored help example

EXAMPLE 1

Show-Console -Chart

Parameters

-Chart SwitchParameter optional
Shows objects as a bar chart (label from the first text property, value from the first number).
-ChildProperty String optional
The property that holds each object's children, for a tree.
-Depth Int32 optional
The deepest level an inspector or tree shows (default 3).
-InputObject PSObject optionalposition: 0pipeline: True (ByValue)
The objects to show.
-Property Object[] optional
The properties for a table, as in Format-ConsoleTable (names, wildcards, calculated properties).
-Title Object optional
A title (markup).
-View ConsoleViewKind optional
The view instead of the automatic choice: Table, Cards, Tree, Inspector, Chart, Code, Text or Grid.
Possible values: Empty, Text, Code, Inspector, Table, Cards, Tree, Chart, Grid
-Width Int32 optional
The width in cells (default the window).

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.