(streams command.Streams, info clientInfo)
| 215 | } |
| 216 | |
| 217 | func prettyPrintClientInfo(streams command.Streams, info clientInfo) { |
| 218 | fprintlnNonEmpty(streams.Out(), " Version: ", info.Version) |
| 219 | fprintln(streams.Out(), " Context: ", info.Context) |
| 220 | fprintln(streams.Out(), " Debug Mode:", info.Debug) |
| 221 | |
| 222 | if len(info.Plugins) > 0 { |
| 223 | fprintln(streams.Out(), " Plugins:") |
| 224 | for _, p := range info.Plugins { |
| 225 | if p.Err == nil { |
| 226 | fprintf(streams.Out(), " %s: %s (%s)\n", p.Name, p.ShortDescription, p.Vendor) |
| 227 | fprintlnNonEmpty(streams.Out(), " Version: ", p.Version) |
| 228 | fprintlnNonEmpty(streams.Out(), " Path: ", p.Path) |
| 229 | } else { |
| 230 | info.Warnings = append(info.Warnings, fmt.Sprintf("WARNING: Plugin %q is not valid: %s", p.Path, p.Err)) |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | if len(info.Warnings) > 0 { |
| 236 | fprintln(streams.Err(), strings.Join(info.Warnings, "\n")) |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | //nolint:gocyclo |
| 241 | func prettyPrintServerInfo(streams command.Streams, info *dockerInfo) { |
no test coverage detected
searching dependent graphs…