(cmd *cobra.Command, flags *bundleActivationFlags)
| 251 | } |
| 252 | |
| 253 | func 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 | |
| 273 | func bundleActivationRequestFromFlags(flags bundleActivationFlags) ActivateBundleRequest { |
| 274 | return ActivateBundleRequest{ |
no test coverage detected