(deps commandDeps)
| 895 | } |
| 896 | |
| 897 | func newMemoryDreamStatusCommand(deps commandDeps) *cobra.Command { |
| 898 | return &cobra.Command{ |
| 899 | Use: memoryStatusKey, |
| 900 | Short: "Show Memory v2 dreaming runtime status", |
| 901 | Args: cobra.NoArgs, |
| 902 | RunE: func(cmd *cobra.Command, _ []string) error { |
| 903 | client, err := clientFromDeps(deps) |
| 904 | if err != nil { |
| 905 | return err |
| 906 | } |
| 907 | response, err := client.GetMemoryDreamStatus(cmd.Context()) |
| 908 | if err != nil { |
| 909 | return err |
| 910 | } |
| 911 | return writeCommandOutput(cmd, memoryDreamListBundle(response)) |
| 912 | }, |
| 913 | } |
| 914 | } |
| 915 | |
| 916 | func newMemoryDailyCommand(deps commandDeps) *cobra.Command { |
| 917 | cmd := &cobra.Command{ |
no test coverage detected