Implement repeat loops
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user