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

Function newBundleListCommand

internal/cli/bundle.go:122–138  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

120}
121
122func newBundleListCommand(deps commandDeps) *cobra.Command {
123 return &cobra.Command{
124 Use: bundleListKey,
125 Short: "List active bundle presets",
126 RunE: func(cmd *cobra.Command, _ []string) error {
127 client, err := clientFromDeps(deps)
128 if err != nil {
129 return err
130 }
131 items, err := client.ListBundleActivations(cmd.Context())
132 if err != nil {
133 return err
134 }
135 return writeCommandOutput(cmd, bundleActivationListBundle(items))
136 },
137 }
138}
139
140func newBundleGetCommand(deps commandDeps) *cobra.Command {
141 return &cobra.Command{

Callers 1

newBundleCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
ListBundleActivationsMethod · 0.65

Tested by

no test coverage detected