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