From 7359fe783c561c02b2c85d3d1990a5f99cf1a614 Mon Sep 17 00:00:00 2001 From: Thomas Hansen Date: Sat, 30 Dec 2023 16:33:10 +0200 Subject: [PATCH] b --- .../misc/workflows/actions/misc/config-get.hl | 19 +++++++++++++++++++ .../actions/misc/{log.hl => log-create.hl} | 0 2 files changed, 19 insertions(+) create mode 100644 backend/files/misc/workflows/actions/misc/config-get.hl rename backend/files/misc/workflows/actions/misc/{log.hl => log-create.hl} (100%) diff --git a/backend/files/misc/workflows/actions/misc/config-get.hl b/backend/files/misc/workflows/actions/misc/config-get.hl new file mode 100644 index 0000000000..148c68de27 --- /dev/null +++ b/backend/files/misc/workflows/actions/misc/config-get.hl @@ -0,0 +1,19 @@ + +/* + * Returns the specified [key] configuration setting. + * + * Notice, to traverse into for instance magic.foo.bar, you'll have to colon separate + * your path as follows "magic:foo:bar". + */ +.arguments + key + type:string + mandatory:bool:true +.icon:account_balance + +// Retrieves config entry. +config.get:x:@.arguments/*/key + +// Returns result of above invocation to caller. +yield + value:x:@config.get diff --git a/backend/files/misc/workflows/actions/misc/log.hl b/backend/files/misc/workflows/actions/misc/log-create.hl similarity index 100% rename from backend/files/misc/workflows/actions/misc/log.hl rename to backend/files/misc/workflows/actions/misc/log-create.hl