(deps commandDeps)
| 120 | } |
| 121 | |
| 122 | func 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 | |
| 140 | func newBundleGetCommand(deps commandDeps) *cobra.Command { |
| 141 | return &cobra.Command{ |
no test coverage detected