You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #57576 [Console] Add finished indicator to ProgressIndicator (LauLaman)
This PR was merged into the 7.2 branch.
Discussion
----------
[Console] Add finished indicator to `ProgressIndicator`
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
Add a (configurable) finished indicator to the progress indicator to show that the progress is finished instead of last used indicator value.
This will make the output a bit nicer
instead of
```
- Process A (4 secs, 8.0 MiB)
\ Process B (1 min, 39 secs, 18.0 MiB)
- Process C (7 secs, 18.0 MiB)
- Process D (48 secs, 20.0 MiB)
/ Process E (45 secs, 20.0 MiB)
```
The output will look now like this:
```
✔ Process A (4 secs, 8.0 MiB)
✔ Process B (1 min, 39 secs, 18.0 MiB)
✔ Process C (7 secs, 18.0 MiB)
✔ Process D (48 secs, 20.0 MiB)
✔ Process E (45 secs, 20.0 MiB)
```
Commits
-------
b13fffc82e Add finished indicator to ProgressIndicator
if (null !== $finishedIndicator && !\is_string($finishedIndicator)) {
138
+
thrownew \TypeError(\sprintf('Argument 2 passed to "%s()" must be of the type string or null, "%s" given.', __METHOD__, get_debug_type($finishedIndicator)));
139
+
}
140
+
128
141
if (!$this->started) {
129
142
thrownewLogicException('Progress indicator has not yet been started.');
0 commit comments