MCPcopy Create free account
hub / github.com/Scalingo/cli / parseVariable

Function parseVariable

env/edit.go:111–114  ·  view source on GitHub ↗
(param string)

Source from the content-addressed store, hash-verified

109}
110
111func parseVariable(param string) (string, string) {
112 editSplit := strings.SplitN(param, "=", 2)
113 return editSplit[0], editSplit[1]
114}
115
116func readFromCmdLine(ctx context.Context, variables map[string]string, params []string) (map[string]string, error) {
117 for _, param := range params {

Callers 3

TestParseVariableFunction · 0.85
isEnvEditValidFunction · 0.85
readFromCmdLineFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseVariableFunction · 0.68