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

Function addBundleActivationFlags

internal/cli/bundle.go:253–271  ·  view source on GitHub ↗
(cmd *cobra.Command, flags *bundleActivationFlags)

Source from the content-addressed store, hash-verified

251}
252
253func addBundleActivationFlags(cmd *cobra.Command, flags *bundleActivationFlags) {
254 cmd.Flags().StringVar(&flags.extensionName, bundleExtensionKey, "", "Extension name")
255 cmd.Flags().StringVar(&flags.bundleName, bundleBundleKey, "", "Bundle name")
256 cmd.Flags().StringVar(&flags.profileName, bundleProfileKey, "", "Bundle profile name")
257 cmd.Flags().
258 StringVar(&flags.scope, automationScopeKey, bundleGlobalKey, "Activation scope: global or workspace")
259 cmd.Flags().
260 StringVar(&flags.workspace, workspaceSkillSource, "", "Workspace id, name, or path for workspace scope")
261 cmd.Flags().
262 BoolVar(
263 &flags.bindPrimaryChannelAsDefault,
264 "bind-primary-channel-as-default",
265 false,
266 "Bind the bundle primary channel as the effective default",
267 )
268 mustMarkFlagRequired(cmd, bundleExtensionKey)
269 mustMarkFlagRequired(cmd, bundleBundleKey)
270 mustMarkFlagRequired(cmd, bundleProfileKey)
271}
272
273func bundleActivationRequestFromFlags(flags bundleActivationFlags) ActivateBundleRequest {
274 return ActivateBundleRequest{

Callers 2

newBundlePreviewCommandFunction · 0.85
newBundleActivateCommandFunction · 0.85

Calls 1

mustMarkFlagRequiredFunction · 0.85

Tested by

no test coverage detected