MCPcopy Create free account
hub / github.com/efficientgo/e2e / BuildKingpinArgs

Function BuildKingpinArgs

cli.go:49–63  ·  view source on GitHub ↗

BuildKingpinArgs is like BuildArgs but with special handling of slice args. NOTE(bwplotka): flags with values as comma but not indented to be slice will cause issues.

(flags map[string]string)

Source from the content-addressed store, hash-verified

47// BuildKingpinArgs is like BuildArgs but with special handling of slice args.
48// NOTE(bwplotka): flags with values as comma but not indented to be slice will cause issues.
49func BuildKingpinArgs(flags map[string]string) []string {
50 args := make([]string, 0, len(flags))
51
52 for name, value := range flags {
53 if value != "" {
54 s := strings.Split(value, ",")
55 for _, ss := range s {
56 args = append(args, name+"="+ss)
57 }
58 continue
59 }
60 args = append(args, name)
61 }
62 return args
63}

Callers 3

NewThanosQuerierFunction · 0.92
NewThanosSidecarFunction · 0.92
NewThanosStoreFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…