| 681 | } |
| 682 | |
| 683 | func toolsetListBundle(response ToolsetsResponseRecord) outputBundle { |
| 684 | return listBundle( |
| 685 | response, |
| 686 | response.Toolsets, |
| 687 | "Toolsets", |
| 688 | []string{"TOOLSET ID", "STATUS", "EXPANDED TOOLS", "REASONS"}, |
| 689 | "toolsets", |
| 690 | []string{"id", automationStatusKey, "expanded_tools", toolOperatorReasonsKey}, |
| 691 | func(item ToolsetRecord) []string { |
| 692 | return []string{ |
| 693 | item.ID.String(), |
| 694 | stringOrDash(item.Status), |
| 695 | strings.Join(toolIDsToStrings(item.ExpandedTools), ","), |
| 696 | joinReasons(item.ReasonCodes), |
| 697 | } |
| 698 | }, |
| 699 | func(item ToolsetRecord) []string { |
| 700 | return []string{ |
| 701 | item.ID.String(), |
| 702 | stringOrDash(item.Status), |
| 703 | strings.Join(toolIDsToStrings(item.ExpandedTools), ","), |
| 704 | joinReasons(item.ReasonCodes), |
| 705 | } |
| 706 | }, |
| 707 | ) |
| 708 | } |
| 709 | |
| 710 | func toolsetInfoBundle(response ToolsetResponseRecord) outputBundle { |
| 711 | toolset := response.Toolset |