(deps commandDeps)
| 816 | } |
| 817 | |
| 818 | func newMemoryDreamShowCommand(deps commandDeps) *cobra.Command { |
| 819 | return &cobra.Command{ |
| 820 | Use: "show <date-or-run-id>", |
| 821 | Short: "Show one Memory v2 dreaming run", |
| 822 | Args: exactOneNonBlankArg(), |
| 823 | RunE: func(cmd *cobra.Command, args []string) error { |
| 824 | client, err := clientFromDeps(deps) |
| 825 | if err != nil { |
| 826 | return err |
| 827 | } |
| 828 | response, err := client.GetMemoryDream(cmd.Context(), strings.TrimSpace(args[0])) |
| 829 | if err != nil { |
| 830 | return err |
| 831 | } |
| 832 | return writeCommandOutput(cmd, memoryObjectBundle("Memory Dream", response)) |
| 833 | }, |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | func newMemoryDreamRetryCommand(deps commandDeps) *cobra.Command { |
| 838 | var force bool |
no test coverage detected