Skip to content

Commit 28bdd6a

Browse files
committed
Annotate parallel status message with output styling
1 parent ae5310e commit 28bdd6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

colcon_parallel_executor/event_handler/parallel_status.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55

66
from colcon_core.event_handler import EventHandlerExtensionPoint
7+
from colcon_core.output_style import Style
78
from colcon_core.plugin_system import satisfies_version
89
from colcon_parallel_executor.event.executor import ParallelStatus
910

@@ -29,4 +30,8 @@ def __call__(self, event): # noqa: D102
2930
data = event[0]
3031

3132
if isinstance(data, ParallelStatus):
32-
print(f"[Processing: {', '.join(sorted(data.processing))}]")
33+
jobs = [
34+
Style.PackageOrJobName(job)
35+
for job in sorted(data.processing)
36+
]
37+
print(f"[Processing: {', '.join(jobs)}]")

0 commit comments

Comments
 (0)