From cee1be33d109d8374bdd827ca95a4857ed84e6c2 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Wed, 8 Mar 2023 16:58:41 +0100 Subject: [PATCH] exit code --- files/omp/main.omp.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/omp/main.omp.yaml b/files/omp/main.omp.yaml index 380cfdc..bfbcda2 100644 --- a/files/omp/main.omp.yaml +++ b/files/omp/main.omp.yaml @@ -73,12 +73,13 @@ blocks: # STATIC UTILITY - type: exit - template: "{{ .Code }}" + template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}" properties: always_enabled: true <<: *diamond_prefix - background: "p:main-10" foreground: "p:main-70" + background_templates: + - "{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}" - type: executiontime properties: