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

Function BuildArgs

cli.go:34–45  ·  view source on GitHub ↗
(flags map[string]string)

Source from the content-addressed store, hash-verified

32}
33
34func BuildArgs(flags map[string]string) []string {
35 args := make([]string, 0, len(flags))
36
37 for name, value := range flags {
38 if value != "" {
39 args = append(args, name+"="+value)
40 continue
41 }
42 args = append(args, name)
43 }
44 return args
45}
46
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.

Callers 2

NewParcaFunction · 0.92
NewPrometheusFunction · 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…