Skip to content
ConsoleMonster
Cmdlet

New-ConsoleDiagramUseCase

Module
ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.DiagramUseCase

Builds a playable sequence of diagram interactions.

Syntax

New-ConsoleDiagramUseCase
[-AutoPlay]
[[-Content] <ScriptBlock>]
[-Delay <Int32>]
[-Id <String>]
[-Label] <String>
[-Loop]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Content emits New-ConsoleDiagramStep values in playback order. Id defaults to Label. AutoPlay starts only when the keyboard view opens; static output keeps the selected step.

Examples

Example 1

New-ConsoleDiagramUseCase 'Place an order' { New-ConsoleDiagramStep Shopper Web 'POST /checkout'; New-ConsoleDiagramStep Web Shopper 'Thank you' -Reply }

A request and reply.

Parameters

-AutoPlay SwitchParameter optional
Starts playback on opening the keyboard view.
-Content ScriptBlock optionalposition: 1
Emits interactions in order.
-Delay Int32 optional
Playback milliseconds per step.
-Id String optional
The explicit selection key.
-Label String requiredposition: 0
The use-case label and default id.
-Loop SwitchParameter optional
Repeats playback.

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.