(vars variables)
| 21 | type variables *[]variable |
| 22 | |
| 23 | func variableOptions(vars variables) []execution.ExecuteOptionFn { |
| 24 | var opts []execution.ExecuteOptionFn |
| 25 | if vars != nil { |
| 26 | for _, v := range *vars { |
| 27 | opts = append(opts, execution.WithVariable(v.Name, v.Value)) |
| 28 | } |
| 29 | } |
| 30 | return opts |
| 31 | } |
| 32 | |
| 33 | type variableMapper struct { |
| 34 | } |