You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:38:10 UTC

[buildstream] 04/14: widget.py: Support %{variant} formatting in show_pipeline()

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch variants-slow-functional-loopy
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 8a05ad5228173c2ad9e08ac7253aa191b46dda69
Author: Tristan Van Berkom <tr...@codethink.co.uk>
AuthorDate: Sat Jul 15 16:14:09 2017 +0900

    widget.py: Support %{variant} formatting in show_pipeline()
---
 buildstream/_frontend/widget.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index 2c0cc18..67ff836 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -545,6 +545,9 @@ class LogLine(Widget):
                 else:
                     line = p.fmt_subst(line, 'state', "waiting", fg='blue')
 
+            # The variant
+            line = p.fmt_subst(line, 'variant', element.variant or "", fg='yellow', bold=True, dim=True)
+
             # Element configuration
             if "%{config" in format:
                 config = _yaml.node_sanitize(element._Element__config)