(flags map[string]string)
| 32 | } |
| 33 | |
| 34 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…