(cmd *cobra.Command)
| 317 | } |
| 318 | |
| 319 | func vendorAndVersion(cmd *cobra.Command) string { |
| 320 | if vendor, ok := cmd.Annotations[metadata.CommandAnnotationPluginVendor]; ok && isPlugin(cmd) { |
| 321 | version := "" |
| 322 | if v, ok := cmd.Annotations[metadata.CommandAnnotationPluginVersion]; ok && v != "" { |
| 323 | version = ", " + v |
| 324 | } |
| 325 | return fmt.Sprintf("(%s%s)", vendor, version) |
| 326 | } |
| 327 | return "" |
| 328 | } |
| 329 | |
| 330 | func managementSubCommands(cmd *cobra.Command) []*cobra.Command { |
| 331 | cmds := []*cobra.Command{} |
searching dependent graphs…