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

Function newBundleGetCommand

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

Source from the content-addressed store, hash-verified

138}
139
140func 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
159func newBundleUpdateCommand(deps commandDeps) *cobra.Command {
160 var (

Callers 1

newBundleCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bundleActivationBundleFunction · 0.85
GetBundleActivationMethod · 0.65

Tested by

no test coverage detected