Implement repeat loops

This commit is contained in:
2021-03-01 20:18:52 -08:00
parent 745920b139
commit 877f85ef78
5 changed files with 53 additions and 15 deletions
+8
View File
@@ -81,3 +81,11 @@ func doShellScript(args map[string]interface{}) (interface{}, error) {
return nil, errors.New("script not provided")
}
}
func toString(args map[string]interface{}) (interface{}, error) {
val, ok := args[""]
if !ok {
return nil, errors.New("no value provided")
}
return fmt.Sprint(val), nil
}