You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hack/functions/main.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,15 @@ var Functions = []Function{
335
335
Group: groupChecks,
336
336
IsGlobal: true,
337
337
},
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
+
},
338
347
{
339
348
Name: "is_os",
340
349
Description: `Returns exit code 0 if the current operating system equals the value provided as argument`,
0 commit comments