MCPcopy Create free account
hub / github.com/compozy/agh / newMemoryDreamShowCommand

Function newMemoryDreamShowCommand

internal/cli/memory.go:818–835  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

816}
817
818func 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
837func newMemoryDreamRetryCommand(deps commandDeps) *cobra.Command {
838 var force bool

Callers 1

newMemoryDreamCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
memoryObjectBundleFunction · 0.85
GetMemoryDreamMethod · 0.65

Tested by

no test coverage detected