From 5b17909c4f69830e93a569b6e4994c9775657e35 Mon Sep 17 00:00:00 2001 From: Jason Elbaum Date: Sat, 5 Feb 2022 16:54:16 +0200 Subject: redis-cli generates command help tables from the results of COMMAND (#10043) This is a followup to #9656 and implements the following step mentioned in that PR: * When possible, extract all the help and completion tips from COMMAND DOCS (Redis 7.0 and up) * If COMMAND DOCS fails, use the static help.h compiled into redis-cli. * Supplement additional command names from COMMAND (pre-Redis 7.0) The last step is needed to add module command and other non-standard commands. This PR does not change the interactive hinting mechanism, which still uses only the param strings to provide somewhat unreliable and inconsistent command hints (see #8084). That task is left for a future PR. Co-authored-by: Oran Agra --- tests/support/util.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/support') diff --git a/tests/support/util.tcl b/tests/support/util.tcl index 5fc319254..9d1a127ed 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -647,7 +647,7 @@ proc latencyrstat_percentiles {cmd r} { proc generate_fuzzy_traffic_on_key {key duration} { # Commands per type, blocking commands removed - # TODO: extract these from help.h or elsewhere, and improve to include other types + # TODO: extract these from COMMAND DOCS, and improve to include other types set string_commands {APPEND BITCOUNT BITFIELD BITOP BITPOS DECR DECRBY GET GETBIT GETRANGE GETSET INCR INCRBY INCRBYFLOAT MGET MSET MSETNX PSETEX SET SETBIT SETEX SETNX SETRANGE LCS STRLEN} set hash_commands {HDEL HEXISTS HGET HGETALL HINCRBY HINCRBYFLOAT HKEYS HLEN HMGET HMSET HSCAN HSET HSETNX HSTRLEN HVALS HRANDFIELD} set zset_commands {ZADD ZCARD ZCOUNT ZINCRBY ZINTERSTORE ZLEXCOUNT ZPOPMAX ZPOPMIN ZRANGE ZRANGEBYLEX ZRANGEBYSCORE ZRANK ZREM ZREMRANGEBYLEX ZREMRANGEBYRANK ZREMRANGEBYSCORE ZREVRANGE ZREVRANGEBYLEX ZREVRANGEBYSCORE ZREVRANK ZSCAN ZSCORE ZUNIONSTORE ZRANDMEMBER} -- cgit v1.2.1