mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Dont COMMANDS DOCS if not TTY (not interactive) (#11850)
Avoiding initializing the interactive help and the excessive call to the COMMAND command when using redis-cli with pipe. e.g. ``` echo PING | redis-cli ```
This commit is contained in:
parent
9d336ac398
commit
bb57d4ec75
@ -2621,7 +2621,7 @@ static void repl(void) {
|
||||
/* There is no need to initialize redis HELP when we are in lua debugger mode.
|
||||
* It has its own HELP and commands (COMMAND or COMMAND DOCS will fail and got nothing).
|
||||
* We will initialize the redis HELP after the Lua debugging session ended.*/
|
||||
if (!config.eval_ldb) {
|
||||
if ((!config.eval_ldb) && isatty(fileno(stdin))) {
|
||||
/* Initialize the help using the results of the COMMAND command. */
|
||||
cliInitHelp();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user