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)
| 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. |
| 49 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…