(m uhaha.Machine, args []string)
| 262 | } |
| 263 | return v, nil |
| 264 | } |
| 265 | |
| 266 | func cmdHCLEAR(m uhaha.Machine, args []string) (interface{}, error) { |
| 267 | if len(args) != 2 { |
| 268 | return nil, uhaha.ErrWrongNumArgs |
| 269 | } |
| 270 | |
| 271 | n, err := ldb.HClear([]byte(args[1])) |
| 272 | if err != nil { |
| 273 | return nil, err |
| 274 | } |
| 275 | return redcon.SimpleInt(n), nil |
| 276 | } |
| 277 |
nothing calls this directly
no outgoing calls
no test coverage detected