ProvideCommand provides redis commands.
(command *cobra.Command)
| 30 | |
| 31 | // ProvideCommand provides redis commands. |
| 32 | func (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 | } |
nothing calls this directly
no test coverage detected