Update-ConsoleSummaryBar
Updates a summary bar (New-ConsoleSummaryBar) in the running dashboard: progress and counters.
Syntax
Update-ConsoleSummaryBar [-Counter <IDictionary>] [[-Done] <Double>] [-Name <String>] [-Session <LiveSession>] [[-Total] <Double>] [<CommonParameters>]#All Parameter SetsDescription
Updates a summary bar (New-ConsoleSummaryBar) in the running dashboard: progress and counters.
-Done sets the items done (-Total changes the total; without it the bar keeps its total) and -Counter sets counts by label, in one call; a label that is a status word (passed, failed, warnings, skipped, running) takes that status's symbol and colour, and new labels are added after the existing ones. The elapsed time and the time left follow the session clock, so a simulated clock (New-ConsoleClock) drives them too. Safe to call from any runspace or thread.
Examples
EXAMPLE 1
Update-ConsoleSummaryBar -Done $done -Counter ([ordered] @{ passed = $passed; warnings = $warned; failed = $failed })Count a finished check
EXAMPLE 2
Update-ConsoleSummaryBar -Name summary -Done 12 -Total 80A run whose total grows as work is discovered
Parameters
- -Counter IDictionary
- Labels mapped to counts (use [ordered] to keep the order of new labels); status words take their status symbol and colour.
- -Done Double
- Items done.
- -Name String
- The summary bar name (default summary).
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Total Double
- Items in total; without it the bar keeps the total it has (0 = unknown).
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.