Skip to content

Commit

Permalink
Redis in HELP commands (#216)
Browse files Browse the repository at this point in the history
Removes the word Redis in the output of COMMAND HELP and DEBUG HELP.

---------

Signed-off-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
zuiderkwast authored Apr 4, 2024
1 parent 29621bc commit 4646d08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,14 @@ void debugCommand(client *c) {
"DIGEST-VALUE <key> [<key> ...]",
" Output a hex signature of the values of all the specified keys.",
"ERROR <string>",
" Return a Redis protocol error with <string> as message. Useful for clients",
" unit tests to simulate Redis errors.",
" Return a RESP protocol error with <string> as message. Useful for clients",
" unit tests to simulate error replies.",
"LEAK <string>",
" Create a memory leak of the input string.",
"LOG <message>",
" Write <message> to the server log.",
"HTSTATS <dbid> [full]",
" Return hash table statistics of the specified Redis database.",
" Return hash table statistics of the specified database.",
"HTSTATS-KEY <key> [full]",
" Like HTSTATS but for the hash table stored at <key>'s value.",
"LOADAOF",
Expand Down Expand Up @@ -468,7 +468,7 @@ void debugCommand(client *c) {
" Crash the server with sigsegv.",
"SET-ACTIVE-EXPIRE <0|1>",
" 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.",
"QUICKLIST-PACKED-THRESHOLD <size>",
" Sets the threshold for elements to be inserted as plain vs packed nodes",
Expand All @@ -480,7 +480,7 @@ void debugCommand(client *c) {
"STRINGMATCH-TEST",
" Run a fuzz tester against the stringmatchlen() function.",
"STRUCTSIZE",
" Return the size of different Redis core C structures.",
" Return the size of different core C structures.",
"LISTPACK <key>",
" Show low level info about the listpack encoding of <key>.",
"QUICKLIST <key> [<0|1>]",
Expand Down
14 changes: 7 additions & 7 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -5303,23 +5303,23 @@ void commandGetKeysCommand(client *c) {
void commandHelpCommand(client *c) {
const char *help[] = {
"(no subcommand)",
" Return details about all Redis commands.",
" Return details about all commands.",
"COUNT",
" Return the total number of commands in this Redis server.",
" Return the total number of commands in this server.",
"LIST",
" Return a list of all commands in this Redis server.",
" Return a list of all commands in this server.",
"INFO [<command-name> ...]",
" Return details about multiple Redis commands.",
" Return details about multiple commands.",
" If no command names are given, documentation details for all",
" commands are returned.",
"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",
" commands are returned.",
"GETKEYS <full-command>",
" Return the keys from a full Redis command.",
" Return the keys from a 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
};

Expand Down

0 comments on commit 4646d08

Please sign in to comment.