(pspb []*types.Platform)
| 151 | } |
| 152 | |
| 153 | func prettyPlatforms(pspb []*types.Platform) string { |
| 154 | psm := map[string]struct{}{} |
| 155 | for _, p := range pspb { |
| 156 | psm[platforms.Format(v1.Platform{ |
| 157 | OS: p.OS, |
| 158 | Architecture: p.Architecture, |
| 159 | Variant: p.Variant, |
| 160 | })] = struct{}{} |
| 161 | } |
| 162 | var ps []string |
| 163 | for p := range psm { |
| 164 | ps = append(ps, p) |
| 165 | } |
| 166 | sort.Stable(sort.StringSlice(ps)) |
| 167 | return strings.Join(ps, ",") |
| 168 | } |
| 169 | |
| 170 | var inspectRuntimeCommand = &cli.Command{ |
| 171 | Name: "inspect-runtime", |
no test coverage detected
searching dependent graphs…