Cmdlet
Update-ConsoleLane
Updates a lane of a running dashboard: progress, step results, status and detail.
Syntax
Update-ConsoleLane [-Complete] [-Detail <Object>] [-Key] <String> [-Label <Object>] [-Name <String>] [-Result <StatusKind>] [-Session <LiveSession>] [-Status <StatusKind>] [-Steps <Double>] [-Total <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Updates a lane of a running dashboard: progress, step results, status and detail.
With -Result, counts one completed step (or -Steps steps) as passed, failed, warning or skipped and advances the bar. With -Status, sets the lane state (Running, Pass, Fail, Warn, Skip). -Complete finishes the lane (Fail if any step failed, Warn if any warned, otherwise Pass). Safe to call from any runspace or thread.
Examples
EXAMPLE 1
Update-ConsoleLane -Key 'Value'Parameters
- -Complete SwitchParameter
- Finish the lane.
- -Detail Object
- What the lane is doing now.
- -Key String
- The lane key (created on first use).
- -Label Object
- The lane label (when adding or renaming).
- -Name String
- The lanes widget name (default lanes).
- -Result StatusKind
- Result of completed steps.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Status StatusKind
- Set the lane status.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Steps Double
- Steps completed with this result (default 1).
- -Total Double
- Planned steps for the lane.
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.