exit code

This commit is contained in:
Niccolo Borgioli 2023-03-08 16:58:41 +01:00
parent a57d8a5f42
commit cee1be33d1
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B

View File

@ -73,12 +73,13 @@ blocks:
# STATIC UTILITY # STATIC UTILITY
- type: exit - type: exit
template: "{{ .Code }}" template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}"
properties: properties:
always_enabled: true always_enabled: true
<<: *diamond_prefix <<: *diamond_prefix
background: "p:main-10"
foreground: "p:main-70" foreground: "p:main-70"
background_templates:
- "{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}"
- type: executiontime - type: executiontime
properties: properties: