From 21b84d669a5f7cf2922b8a2711d342a68140b227 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 08:12:39 +0000 Subject: [PATCH] [create-pull-request] automated change --- src/cfengine_cli/syntax-description.json | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/cfengine_cli/syntax-description.json b/src/cfengine_cli/syntax-description.json index 5d30c05..0bbb5b0 100644 --- a/src/cfengine_cli/syntax-description.json +++ b/src/cfengine_cli/syntax-description.json @@ -6786,15 +6786,30 @@ "string_replace": { "cached": false, "category": "data", - "collecting": false, + "collecting": true, + "maxArgs": 4, + "minArgs": 3, "parameters": [ { "description": "Source string", "range": ".*", "type": "string" }, - { "description": "String to replace", "range": ".*", "type": "string" }, - { "description": "Replacement string", "range": ".*", "type": "string" } + { + "description": "String or list of strings to replace", + "range": ".*", + "type": "string" + }, + { + "description": "Replacement string or list of strings", + "range": ".*", + "type": "string" + }, + { + "description": "Whether to expect strings or list of strings", + "range": "strings,lists", + "type": "option" + } ], "returnType": "string", "status": "normal", - "variadic": false + "variadic": true }, "string_reverse": { "cached": false,