add missing command for CLI completion

This commit is contained in:
holys 2014-07-22 22:20:04 +08:00
parent 41d7db664b
commit edeee8f645
1 changed files with 6 additions and 3 deletions

View File

@ -5,6 +5,8 @@ var helpCommands = [][]string{
{"DECRBY", "key decrement", "KV"},
{"DEL", "key [key ...]", "KV"},
{"EXISTS", "key", "KV"},
{"EXPIRE", "key seconds", "KV"},
{"EXPIREAT", "key timestamp", "KV"},
{"GET", "key", "KV"},
{"GETSET", " key value", "KV"},
{"INCR", "key", "KV"},
@ -13,9 +15,8 @@ var helpCommands = [][]string{
{"MSET", "key value [key value ...]", "KV"},
{"SET", "key value", "KV"},
{"SETNX", "key value", "KV"},
{"EXPIRE", "key seconds", "KV"},
{"EXPIREAT", "key timestamp", "KV"},
{"TTL", "PERSIST", "KV"},
{"TTL", "key", "KV"},
{"PERSIST", "key", "KV"},
{"HDEL", "key field [field ...]", "Hash"},
{"HEXISTS", "key field", "Hash"},
{"HGET", "key field", "Hash"},
@ -56,6 +57,7 @@ var helpCommands = [][]string{
{"ZREM", "key member [member ...]", "ZSet"},
{"ZREMRANGEBYRANK", "key start stop", "ZSet"},
{"ZREMRANGEBYSCORE", "key min max", "ZSet"},
{"ZREVRANGE", "key start stop [WITHSCORES]", "ZSet"},
{"ZREVRANGEBYSCORE", "key max min [WITHSCORES][LIMIT offset count]", "ZSet"},
{"ZREVRANK", "key member", "ZSet"},
{"ZSCORE", "key member", "ZSet"},
@ -65,6 +67,7 @@ var helpCommands = [][]string{
{"ZEXPIREAT", "key timestamp", "ZSet"},
{"ZTTL", "key", "ZSet"},
{"ZPERSIST", "key", "ZSet"},
{"BDELETE", "key", "ZSet"},
{"BGET", "key", "Bitmap"},
{"BGETBIT", "key offset", "Bitmap"},
{"BSETBIT", "key offset value", "Bitmap"},