add red colors for failed service
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Michaël Ricart 2025-02-17 13:30:26 +01:00
parent a4ccdc9c45
commit 851db200e0

View file

@ -18,5 +18,5 @@ services
================================================== ==================== ============== ================================================== ==================== ==============
service state description service state description
================================================== ==================== =============={% for svc in services %} ================================================== ==================== =============={% for svc in services %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<20}".format(svc["sub"].replace("running",":green:`running`")) }} {{ svc["description"] }}{% endfor %} {{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<20}".format(svc["sub"].replace("running",":green:`running`").replace("failed", ":red:`failed`")) }} {{ svc["description"] }}{% endfor %}
================================================== ==================== ============== ================================================== ==================== ==============