add cli auco-completion for new commands

This commit is contained in:
holys 2014-08-27 11:25:55 +08:00
parent 5f5b7f1ac7
commit bf123c3bce
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//This file was generated by ./generate.py on Fri Aug 22 2014 14:32:10 +0800
//This file was generated by .tools/generate_commands.py on Wed Aug 27 2014 11:14:50 +0800
package main
var helpCommands = [][]string{
@ -12,6 +12,7 @@ var helpCommands = [][]string{
{"BMSETBIT", "key offset value [offset value ...]", "Bitmap"},
{"BOPT", "operation destkey key [key ...]", "Bitmap"},
{"BPERSIST", "key", "Bitmap"},
{"BSCAN", "key [MATCH match] [COUNT count]", "Bitmap"},
{"BSETBIT", "key offset value", "Bitmap"},
{"BTTL", "key", "Bitmap"},
{"COMMIT", "-", "Transaction"},
@ -22,6 +23,8 @@ var helpCommands = [][]string{
{"EXISTS", "key", "KV"},
{"EXPIRE", "key seconds", "KV"},
{"EXPIREAT", "key timestamp", "KV"},
{"FLUSHALL", "-", "Server"},
{"FLUSHDB", "-", "Server"},
{"FULLSYNC", "-", "Replication"},
{"GET", "key", "KV"},
{"GETSET", " key value", "KV"},
@ -39,11 +42,13 @@ var helpCommands = [][]string{
{"HMGET", "key field [field ...]", "Hash"},
{"HMSET", "key field value [field value ...]", "Hash"},
{"HPERSIST", "key", "Hash"},
{"HSCAN", "key [MATCH match] [COUNT count]", "Hash"},
{"HSET", "key field value", "Hash"},
{"HTTL", "key", "Hash"},
{"HVALS", "key", "Hash"},
{"INCR", "key", "KV"},
{"INCRBY", "key increment", "KV"},
{"INFO", "[section]", "Server"},
{"LCLEAR", "key", "List"},
{"LEXPIRE", "key seconds", "List"},
{"LEXPIREAT", "key timestamp", "List"},
@ -54,6 +59,7 @@ var helpCommands = [][]string{
{"LPOP", "key", "List"},
{"LPUSH", "key value [value ...]", "List"},
{"LRANGE", "key start stop", "List"},
{"LSCAN", "key [MATCH match] [COUNT count]", "List"},
{"LTTL", "key", "List"},
{"MGET", "key [key ...]", "KV"},
{"MSET", "key value [key value ...]", "KV"},
@ -63,6 +69,7 @@ var helpCommands = [][]string{
{"RPOP", "key", "List"},
{"RPUSH", "key value [value ...]", "List"},
{"SADD", "key member [member ...]", "Set"},
{"SCAN", "key [MATCH match] [COUNT count]", "KV"},
{"SCARD", "key", "Set"},
{"SCLEAR", "key", "Set"},
{"SDIFF", "key [key ...]", "Set"},
@ -80,6 +87,7 @@ var helpCommands = [][]string{
{"SMEMBERS", "key", "Set"},
{"SPERSIST", "key", "Set"},
{"SREM", "key member [member ...]", "Set"},
{"SSCAN", "key [MATCH match] [COUNT count]", "Set"},
{"STTL", "key", "Set"},
{"SUNION", "key [key ...]", "Set"},
{"SUNIONSTORE", "destination key [key ...]", "Set"},
@ -104,6 +112,7 @@ var helpCommands = [][]string{
{"ZREVRANGE", "key start stop [WITHSCORES]", "ZSet"},
{"ZREVRANGEBYSCORE", "key max min [WITHSCORES][LIMIT offset count]", "ZSet"},
{"ZREVRANK", "key member", "ZSet"},
{"ZSCAN", "key [MATCH match] [COUNT count]", "ZSet"},
{"ZSCORE", "key member", "ZSet"},
{"ZTTL", "key", "ZSet"},
{"ZUNIONSTORE", "destkey numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]", "ZSet"},