MCPcopy Index your code
hub / github.com/rilldata/rill / ParseVariables

Function ParseVariables

cli/cmd/start/start.go:213–225  ·  view source on GitHub ↗
(vals []string)

Source from the content-addressed store, hash-verified

211}
212
213func ParseVariables(vals []string) (map[string]string, error) {
214 res := make(map[string]string)
215 for _, v := range vals {
216 v, err := godotenv.Unmarshal(v)
217 if err != nil {
218 return nil, fmt.Errorf("failed to parse variable %q: %w", v, err)
219 }
220 for k, v := range v {
221 res[k] = v
222 }
223 }
224 return res, nil
225}

Callers 2

ValidateCmdFunction · 0.92
StartCmdFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected