(deps commandDeps)
| 58 | } |
| 59 | |
| 60 | func 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 | |
| 78 | func newBundlePreviewCommand(deps commandDeps) *cobra.Command { |
| 79 | flags := bundleActivationFlags{scope: bundleGlobalKey} |
no test coverage detected