Skip to content

Commit e6a9fdb

Browse files
committed
Updated commands.json to the version of 200160226
1 parent 0516b4b commit e6a9fdb

File tree

5 files changed

+2347
-117
lines changed

5 files changed

+2347
-117
lines changed

codegen/GenCmds.hs

+37
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ groupCmds (Cmds cmds) =
4545
, "connection"
4646
, "server"
4747
, "scripting"
48+
-- not implemented:
49+
-- , "cluster"
50+
-- , "geo"
4851
]
4952

5053
-- |Blacklisted commands, optionally paired with the name of their
@@ -78,6 +81,39 @@ blacklist = [ manual "AUTH" ["auth"]
7881
["zrevrangebyscore", "zrevrangebyscoreWithscores"
7982
,"zrevrangebyscoreLimit", "zrevrangebyscoreWithscoresLimit"]
8083
, manual "ZUNIONSTORE" ["zunionstore","zunionstoreWeights"]
84+
, manualWithType "SET"
85+
["set", "setOpts"]
86+
["Condition", "SetOpts(..)"]
87+
, manualWithType "ZADD"
88+
["zadd", "zaddOpts"]
89+
["ZaddOpts(..)"]
90+
, manualWithType "MIGRATE"
91+
["migrate", "migrateMultiple"]
92+
["MigrateOpts(..)"]
93+
, manual "RESTORE"
94+
["restore", "restoreReplace"]
95+
, manualWithType "CLIENT REPLY"
96+
["clientReply"]
97+
["ReplyMode"]
98+
, manualWithType "SCRIPT DEBUG"
99+
["scriptDebug"]
100+
["DebugMode"]
101+
, manual "SRANDMEMBER" ["srandmember", "srandmemberN"]
102+
, manual "SPOP" ["spop"]
103+
, manual "INFO" ["info", "infoSection"]
104+
, manual "EXISTS" ["exists"]
105+
, unimplemented "COMMAND"
106+
, unimplemented "COMMAND GETKEYS"
107+
, unimplemented "ROLE"
108+
, unimplemented "CLIENT KILL"
109+
, unimplemented "SCAN"
110+
, unimplemented "SSCAN"
111+
, unimplemented "HSCAN"
112+
, unimplemented "ZSCAN"
113+
, unimplemented "ZRANGEBYLEX"
114+
, unimplemented "ZREVRANGEBYLEX"
115+
, unimplemented "ZRANGEBYSCORE"
116+
, unimplemented "ZREVRANGEBYSCORE"
81117
, unimplemented "MONITOR" -- debugging command
82118
, unimplemented "SYNC" -- internal command
83119
, unimplemented "SHUTDOWN" -- kills server, throws exception
@@ -374,6 +410,7 @@ argumentType a = mconcat [ go a
374410
go (Pair a a') =
375411
mconcat [fromString "(", go a, fromString ",", go a', fromString ")"]
376412
go a@Arg{..} = translateArgType a
413+
go a = error ("failed to user argument type: " ++ show a)
377414

378415
translateArgType Arg{..} = fromString $ case argType of
379416
"integer" -> "Integer"

0 commit comments

Comments
 (0)