(use string, message string, args cobra.PositionalArgs)
| 1224 | } |
| 1225 | |
| 1226 | func newUnsupportedMemoryCommand(use string, message string, args cobra.PositionalArgs) *cobra.Command { |
| 1227 | return &cobra.Command{ |
| 1228 | Use: use, |
| 1229 | Short: "Reserved Memory v2 command", |
| 1230 | Args: args, |
| 1231 | RunE: func(*cobra.Command, []string) error { |
| 1232 | return errors.New(message) |
| 1233 | }, |
| 1234 | } |
| 1235 | } |
| 1236 | |
| 1237 | func addMemorySelectorFlags(cmd *cobra.Command, flags *memorySelectorFlags) { |
| 1238 | cmd.Flags().StringVar(&flags.Scope, automationScopeKey, "", "Memory scope: global, workspace, or agent") |
no outgoing calls
no test coverage detected