Cmdlet
Update-Console
Updates a live widget or a caller-managed run through one validated operation.
Syntax
Update-Console
[-Complete]
[-Counter <IDictionary>]
[-Detail <Object>]
[-Increment <Double>]
[-Key <String>]
[-Label <Object>]
[-ParentKey <String>]
[-RemainingSeconds <Double>]
[-Restart]
[-Result <StatusKind>]
[-Session <LiveSession>]
[-Status <StatusKind>]
[-Total <Double>]
[-Value <Object>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
FieldsUpdate-Console
-Append
[-Key <String>]
[-Session <LiveSession>]
-Value <Object>
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
AppendUpdate-Console
-Row <Object>
[-Session <LiveSession>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
RowUpdate-Console
-Key <String>
-RemoveRow
[-Session <LiveSession>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
RemoveRowUpdate-Console
-ClearRows
[-Session <LiveSession>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
ClearRowsUpdate-Console
-Index <Int32[]>
[-Session <LiveSession>]
-Status <StatusKind>
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
CellsUpdate-Console
-AppendCells
[-Count <Int32>]
[-Session <LiveSession>]
[-Status <StatusKind>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
AppendCellsUpdate-Console
-CellCount <Int32>
[-Session <LiveSession>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
ResizeCellsUpdate-Console
-Content <Object>
[-Session <LiveSession>]
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
ContentUpdate-Console
-NodeKey <String>
[-Session <LiveSession>]
-Status <StatusKind>
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
FlowNodeUpdate-Console
[-Cut]
-EdgeKey <String>
[-Session <LiveSession>]
-Status <StatusKind>
[-WidgetId] <String>
[<CommonParameters>]#Parameter set:
FlowEdgeUpdate-Console
[-Detail <Object>]
[-DurationSeconds <Double>]
-Index <Int32[]>
[-Label <Object>]
[-Run] <LiveRun>
-Status <StatusKind>
[<CommonParameters>]#Parameter set:
RunDescription
WidgetId is position zero. Fields are checked against the resolved widget before any events are posted. Structural sets separate table rows, cell batches, content replacement and run items. Unknown targets and unsupported fields are terminating errors.
Examples
Example 1
Update-Console build -Value 5 -Total 20 -Label 'Compile'Advance a build and change its label
Example 2
Update-Console -Run $run -Index 0 -Status Pass -Detail 'Uploaded'Finish one run item
Parameters
- -Complete SwitchParameter
- Finishes the activity or lane.
- -Counter IDictionary
- Summary labels mapped to nonnegative integer counts.
- -Detail Object
- The replacement detail.
- -Increment Double
- The additive change; cannot be combined with Value.
- -Key String
- The item key; RemoveRow requires it.
- -Label Object
- The replacement label or current run phase.
- -ParentKey String
- The parent activity key.
- -RemainingSeconds Double
- The estimated remaining time, in seconds.
- -Restart SwitchParameter
- Restarts an indeterminate progress indicator.
- -Result StatusKind
- The result of completed lane steps.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Session LiveSession
- The session, otherwise ConsoleSession or the current session.
- -Status StatusKind
- The new state.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Total Double
- The planned total; zero means unknown.
- -Value Object
- The absolute value or appended numeric sample.
- -WidgetId String
- The live widget identifier.
- -Append SwitchParameter
- Appends Value as a chart sample.
- -Row Object
- A row with Key and Values properties, retaining typed cells.
- -RemoveRow SwitchParameter
- Removes the row addressed by Key.
- -ClearRows SwitchParameter
- Clears all live table rows.
- -Index Int32[]
- Zero-based cells; the Run set requires exactly one index.
- -AppendCells SwitchParameter
- Appends outcome cells.
- -Count Int32
- The number of appended cells; default one.
- -CellCount Int32
- The new cell count, at least one.
- -Content Object
- The replacement widget or a script block producing widgets; null clears the region.
- -NodeKey String
- The flow node whose status changes.
- -Cut SwitchParameter
- Severs the edge; Cut:$false reconnects it. Omission preserves connectivity.
- -EdgeKey String
- The flow edge whose status or connectivity changes.
- -DurationSeconds Double
- The measured run duration in seconds.
- -Run LiveRun
- The caller-managed run handle.
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.