Skip to content
ConsoleMonster
Cmdlet

New-ConsoleFlow

Module
ConsoleMonster
Inputs
System.Management.Automation.PSObject
Outputs
ConsoleMonster.Widgets.Flow

Builds a native flow strip of nodes, labelled edges and one side branch.

Syntax

New-ConsoleFlow
[[-Content] <ScriptBlock>]
[-InputObject <PSObject>]
[[-WidgetId] <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Emit nodes first, then edges and an optional branch. Pipeline rows use Kind (Node, Edge or Branch) and the item command's property names. Labels are literal. The strip becomes vertical in a narrow terminal.

Examples

Example 1

New-ConsoleFlow -Content {
    New-ConsoleFlowNode -Key leaf -Label 'Leaf' -Status Pass
    New-ConsoleFlowNode -Key issuer -Label 'Intermediate' -Status Fail
    New-ConsoleFlowEdge -Key chain -From leaf -To issuer -Label 'expired' -Status Fail -Cut
}

A certificate path with a broken connection

Parameters

-Content ScriptBlock optionalposition: 1
Emits New-ConsoleFlowNode, New-ConsoleFlowEdge and New-ConsoleFlowBranch items.
-InputObject PSObject optionalpipeline: True (ByValue)
Items or plain rows with Kind and the corresponding item properties.
-WidgetId String optionalposition: 0
Identifier used by Update-ConsoleFlow (default flow).

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.