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

Function newMemoryProviderListCommand

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

Source from the content-addressed store, hash-verified

1110}
1111
1112func newMemoryProviderListCommand(deps commandDeps) *cobra.Command {
1113 return &cobra.Command{
1114 Use: memoryListKey,
1115 Short: "List registered Memory v2 providers",
1116 Args: cobra.NoArgs,
1117 RunE: func(cmd *cobra.Command, _ []string) error {
1118 client, err := clientFromDeps(deps)
1119 if err != nil {
1120 return err
1121 }
1122 response, err := client.ListMemoryProviders(cmd.Context())
1123 if err != nil {
1124 return err
1125 }
1126 return writeCommandOutput(cmd, memoryProviderListBundle(response))
1127 },
1128 }
1129}
1130
1131func newMemoryProviderEnableCommand(deps commandDeps) *cobra.Command {
1132 return &cobra.Command{

Callers 1

newMemoryProviderCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
memoryProviderListBundleFunction · 0.85
ListMemoryProvidersMethod · 0.65

Tested by

no test coverage detected