(deps commandDeps)
| 835 | } |
| 836 | |
| 837 | func newMemoryDreamRetryCommand(deps commandDeps) *cobra.Command { |
| 838 | var force bool |
| 839 | |
| 840 | cmd := &cobra.Command{ |
| 841 | Use: "retry <run_id>", |
| 842 | Short: "Retry one failed Memory v2 dreaming run", |
| 843 | Args: exactOneNonBlankArg(), |
| 844 | RunE: func(cmd *cobra.Command, args []string) error { |
| 845 | client, err := clientFromDeps(deps) |
| 846 | if err != nil { |
| 847 | return err |
| 848 | } |
| 849 | response, err := client.RetryMemoryDream(cmd.Context(), strings.TrimSpace(args[0]), MemoryDreamRetryRequest{ |
| 850 | Force: force, |
| 851 | }) |
| 852 | if err != nil { |
| 853 | return err |
| 854 | } |
| 855 | return writeCommandOutput(cmd, memoryObjectBundle("Memory Dream Retry", response)) |
| 856 | }, |
| 857 | } |
| 858 | cmd.Flags().BoolVar(&force, "force", false, "Retry even if normal gates would skip the run") |
| 859 | return cmd |
| 860 | } |
| 861 | |
| 862 | func newMemoryDreamTriggerCommand(deps commandDeps) *cobra.Command { |
| 863 | var flags memorySelectorFlags |
no test coverage detected