Show-Console
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>]#All Parameter SetsDescription
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
EXAMPLE 1
Show-Console -ChartParameters
- -Chart SwitchParameter
- Shows objects as a bar chart (label from the first text property, value from the first number).
- -ChildProperty String
- The property that holds each object's children, for a tree.
- -Depth Int32
- The deepest level an inspector or tree shows (default 3).
- -InputObject PSObject
- The objects to show.
- -Property Object[]
- The properties for a table, as in Format-ConsoleTable (names, wildcards, calculated properties).
- -Title Object
- A title (markup).
- -View ConsoleViewKind
- 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
- 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.