Redis in HELP commands (#216)

Removes the word Redis in the output of COMMAND HELP and DEBUG HELP.

---------

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit is contained in:
Viktor Söderqvist
2024-04-04 23:18:37 +02:00
committed by GitHub
parent 29621bc356
commit 4646d0825e
2 changed files with 12 additions and 12 deletions

View File

@ -410,14 +410,14 @@ void debugCommand(client *c) {
"DIGEST-VALUE <key> [<key> ...]", "DIGEST-VALUE <key> [<key> ...]",
" Output a hex signature of the values of all the specified keys.", " Output a hex signature of the values of all the specified keys.",
"ERROR <string>", "ERROR <string>",
" Return a Redis protocol error with <string> as message. Useful for clients", " Return a RESP protocol error with <string> as message. Useful for clients",
" unit tests to simulate Redis errors.", " unit tests to simulate error replies.",
"LEAK <string>", "LEAK <string>",
" Create a memory leak of the input string.", " Create a memory leak of the input string.",
"LOG <message>", "LOG <message>",
" Write <message> to the server log.", " Write <message> to the server log.",
"HTSTATS <dbid> [full]", "HTSTATS <dbid> [full]",
" Return hash table statistics of the specified Redis database.", " Return hash table statistics of the specified database.",
"HTSTATS-KEY <key> [full]", "HTSTATS-KEY <key> [full]",
" Like HTSTATS but for the hash table stored at <key>'s value.", " Like HTSTATS but for the hash table stored at <key>'s value.",
"LOADAOF", "LOADAOF",
@ -468,7 +468,7 @@ void debugCommand(client *c) {
" Crash the server with sigsegv.", " Crash the server with sigsegv.",
"SET-ACTIVE-EXPIRE <0|1>", "SET-ACTIVE-EXPIRE <0|1>",
" Setting it to 0 disables expiring keys in background when they are not", " Setting it to 0 disables expiring keys in background when they are not",
" accessed (otherwise the Redis behavior). Setting it to 1 reenables back the", " accessed (otherwise the behavior). Setting it to 1 reenables back the",
" default.", " default.",
"QUICKLIST-PACKED-THRESHOLD <size>", "QUICKLIST-PACKED-THRESHOLD <size>",
" Sets the threshold for elements to be inserted as plain vs packed nodes", " Sets the threshold for elements to be inserted as plain vs packed nodes",
@ -480,7 +480,7 @@ void debugCommand(client *c) {
"STRINGMATCH-TEST", "STRINGMATCH-TEST",
" Run a fuzz tester against the stringmatchlen() function.", " Run a fuzz tester against the stringmatchlen() function.",
"STRUCTSIZE", "STRUCTSIZE",
" Return the size of different Redis core C structures.", " Return the size of different core C structures.",
"LISTPACK <key>", "LISTPACK <key>",
" Show low level info about the listpack encoding of <key>.", " Show low level info about the listpack encoding of <key>.",
"QUICKLIST <key> [<0|1>]", "QUICKLIST <key> [<0|1>]",

View File

@ -5303,23 +5303,23 @@ void commandGetKeysCommand(client *c) {
void commandHelpCommand(client *c) { void commandHelpCommand(client *c) {
const char *help[] = { const char *help[] = {
"(no subcommand)", "(no subcommand)",
" Return details about all Redis commands.", " Return details about all commands.",
"COUNT", "COUNT",
" Return the total number of commands in this Redis server.", " Return the total number of commands in this server.",
"LIST", "LIST",
" Return a list of all commands in this Redis server.", " Return a list of all commands in this server.",
"INFO [<command-name> ...]", "INFO [<command-name> ...]",
" Return details about multiple Redis commands.", " Return details about multiple commands.",
" If no command names are given, documentation details for all", " If no command names are given, documentation details for all",
" commands are returned.", " commands are returned.",
"DOCS [<command-name> ...]", "DOCS [<command-name> ...]",
" Return documentation details about multiple Redis commands.", " Return documentation details about multiple commands.",
" If no command names are given, documentation details for all", " If no command names are given, documentation details for all",
" commands are returned.", " commands are returned.",
"GETKEYS <full-command>", "GETKEYS <full-command>",
" Return the keys from a full Redis command.", " Return the keys from a full command.",
"GETKEYSANDFLAGS <full-command>", "GETKEYSANDFLAGS <full-command>",
" Return the keys and the access flags from a full Redis command.", " Return the keys and the access flags from a full command.",
NULL NULL
}; };