From 7383959c7f4ed065366f848cddccaf903c649b6f Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Wed, 29 Jul 2026 01:19:31 -0500 Subject: [PATCH] Added the parameters of string_mustache() to the syntax description cf-promises --syntax-description reported no parameters for string_mustache(), leaving documentation and editor completion with nothing to show. It takes a template and an optional data container, described the same way url_get() describes its equivalent argument. Ticket: CFE-4534 Changelog: Title Co-Authored-By: Claude Opus 5 (1M context) --- libpromises/evalfunction.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpromises/evalfunction.c b/libpromises/evalfunction.c index 8dfcdc8e42..ed5f8627da 100644 --- a/libpromises/evalfunction.c +++ b/libpromises/evalfunction.c @@ -11541,6 +11541,8 @@ static const FnCallArg DATA_EXPAND_ARGS[] = static const FnCallArg STRING_MUSTACHE_ARGS[] = { + {CF_ANYSTRING, CF_DATA_TYPE_STRING, "Mustache template string"}, + {CF_ANYSTRING, CF_DATA_TYPE_STRING, "CFEngine variable identifier or inline JSON, can be blank"}, {NULL, CF_DATA_TYPE_NONE, NULL} };