MCPcopy Index your code
hub / github.com/DoNewsCode/core / ProvideCommand

Method ProvideCommand

otredis/module.go:32–41  ·  view source on GitHub ↗

ProvideCommand provides redis commands.

(command *cobra.Command)

Source from the content-addressed store, hash-verified

30
31// ProvideCommand provides redis commands.
32func (m Module) ProvideCommand(command *cobra.Command) {
33 cleanupCmd := NewCleanupCommand(m.maker, m.logger)
34 redisCmd := &cobra.Command{
35 Use: "redis",
36 Short: "manage redis",
37 Long: "manage redis, such as cleaning up redis cache",
38 }
39 redisCmd.AddCommand(cleanupCmd)
40 command.AddCommand(redisCmd)
41}

Callers

nothing calls this directly

Calls 1

NewCleanupCommandFunction · 0.85

Tested by

no test coverage detected