Cmdlet
New-ConsoleDiagramUseCase
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 SetsDescription
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
- Starts playback on opening the keyboard view.
- -Content ScriptBlock
- Emits interactions in order.
- -Delay Int32
- Playback milliseconds per step.
- -Id String
- The explicit selection key.
- -Label String
- The use-case label and default id.
- -Loop SwitchParameter
- 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.