MCPcopy
hub / github.com/TomWright/dasel / variableOptions

Function variableOptions

internal/cli/variable.go:23–31  ·  view source on GitHub ↗
(vars variables)

Source from the content-addressed store, hash-verified

21type variables *[]variable
22
23func 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
33type variableMapper struct {
34}

Callers 1

runFunction · 0.85

Calls 1

WithVariableFunction · 0.92

Tested by

no test coverage detected