Redis-cli 6.0.1 --cluster-yes
doesn't work (fix #7246)
This make it so that all prompts for all redis-cli --cluster commands are automatically answered with a yes.
This commit is contained in:
parent
7d8259d151
commit
902e82efd2
@ -1798,6 +1798,10 @@ static void usage(void) {
|
||||
}
|
||||
|
||||
static int confirmWithYes(char *msg) {
|
||||
if (config.cluster_manager_command.flags & CLUSTER_MANAGER_CMD_FLAG_YES) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("%s (type 'yes' to accept): ", msg);
|
||||
fflush(stdout);
|
||||
char buf[4];
|
||||
@ -8071,7 +8075,7 @@ int main(int argc, char **argv) {
|
||||
if (cliConnect(0) == REDIS_ERR) exit(1);
|
||||
if (config.interval == 0) config.interval = 1000000;
|
||||
statMode();
|
||||
}
|
||||
( }
|
||||
|
||||
/* Scan mode */
|
||||
if (config.scan_mode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user