(deps commandDeps)
| 138 | } |
| 139 | |
| 140 | func newBundleGetCommand(deps commandDeps) *cobra.Command { |
| 141 | return &cobra.Command{ |
| 142 | Use: "get <activation-id>", |
| 143 | Short: "Show one bundle activation", |
| 144 | Args: exactOneNonBlankArg(), |
| 145 | RunE: func(cmd *cobra.Command, args []string) error { |
| 146 | client, err := clientFromDeps(deps) |
| 147 | if err != nil { |
| 148 | return err |
| 149 | } |
| 150 | item, err := client.GetBundleActivation(cmd.Context(), args[0]) |
| 151 | if err != nil { |
| 152 | return err |
| 153 | } |
| 154 | return writeCommandOutput(cmd, bundleActivationBundle(item)) |
| 155 | }, |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func newBundleUpdateCommand(deps commandDeps) *cobra.Command { |
| 160 | var ( |
no test coverage detected