MCPcopy Create free account
hub / github.com/compozy/agh / toolsetListBundle

Function toolsetListBundle

internal/cli/tool_operator.go:683–708  ·  view source on GitHub ↗
(response ToolsetsResponseRecord)

Source from the content-addressed store, hash-verified

681}
682
683func 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
710func toolsetInfoBundle(response ToolsetResponseRecord) outputBundle {
711 toolset := response.Toolset

Callers 2

newToolsetsListCommandFunction · 0.85

Calls 5

listBundleFunction · 0.85
stringOrDashFunction · 0.85
toolIDsToStringsFunction · 0.85
joinReasonsFunction · 0.85
StringMethod · 0.45

Tested by 1