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

Function newBundleCatalogCommand

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

Source from the content-addressed store, hash-verified

58}
59
60func newBundleCatalogCommand(deps commandDeps) *cobra.Command {
61 return &cobra.Command{
62 Use: "catalog",
63 Short: "List available extension bundle presets",
64 RunE: func(cmd *cobra.Command, _ []string) error {
65 client, err := clientFromDeps(deps)
66 if err != nil {
67 return err
68 }
69 items, err := client.ListBundleCatalog(cmd.Context())
70 if err != nil {
71 return err
72 }
73 return writeCommandOutput(cmd, bundleCatalogBundle(items))
74 },
75 }
76}
77
78func newBundlePreviewCommand(deps commandDeps) *cobra.Command {
79 flags := bundleActivationFlags{scope: bundleGlobalKey}

Callers 1

newBundleCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bundleCatalogBundleFunction · 0.85
ListBundleCatalogMethod · 0.65

Tested by

no test coverage detected