Cmdlet
New-ConsoleFlow
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 SetsDescription
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
- Emits New-ConsoleFlowNode, New-ConsoleFlowEdge and New-ConsoleFlowBranch items.
- -InputObject PSObject
- Items or plain rows with Kind and the corresponding item properties.
- -WidgetId String
- 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.