(deps commandDeps)
| 615 | } |
| 616 | |
| 617 | func newMemoryReloadCommand(deps commandDeps) *cobra.Command { |
| 618 | var flags memorySelectorFlags |
| 619 | |
| 620 | cmd := &cobra.Command{ |
| 621 | Use: configReloadCommandName, |
| 622 | Short: "Invalidate frozen memory snapshots for future session boots", |
| 623 | Args: cobra.NoArgs, |
| 624 | RunE: func(cmd *cobra.Command, _ []string) error { |
| 625 | client, err := clientFromDeps(deps) |
| 626 | if err != nil { |
| 627 | return err |
| 628 | } |
| 629 | selector, err := resolveMemorySelectorFlags(deps, flags, memorySelectorOptions{}) |
| 630 | if err != nil { |
| 631 | return err |
| 632 | } |
| 633 | response, err := client.ReloadMemory(cmd.Context(), selector) |
| 634 | if err != nil { |
| 635 | return err |
| 636 | } |
| 637 | return writeCommandOutput(cmd, memoryObjectBundle("Memory Reload", response)) |
| 638 | }, |
| 639 | } |
| 640 | addMemorySelectorFlags(cmd, &flags) |
| 641 | return cmd |
| 642 | } |
| 643 | |
| 644 | func newMemoryScopeShowCommand(deps commandDeps) *cobra.Command { |
| 645 | var flags memorySelectorFlags |
no test coverage detected