Skip to content

Commit 9a2b17e

Browse files
committed
docs: add is_in to documentation generator
Signed-off-by: Jack Wilsdon <jack+github@wilsdon.me>
1 parent 6c1e41e commit 9a2b17e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/hack/functions/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,15 @@ var Functions = []Function{
335335
Group: groupChecks,
336336
IsGlobal: true,
337337
},
338+
{
339+
Name: "is_in",
340+
Description: "Returns exit code 0 if the value of the first argument can be found in the second argument (second argument being a blank-separated list of strings e.g `\"bananas apples peaches\"`)",
341+
Args: `[value-1] [value-2]`,
342+
Handler: basiccommands.IsIn,
343+
Return: reflect.Int.String(),
344+
Group: groupChecks,
345+
IsGlobal: true,
346+
},
338347
{
339348
Name: "is_os",
340349
Description: `Returns exit code 0 if the current operating system equals the value provided as argument`,

0 commit comments

Comments
 (0)