mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Re-introduce the interactive field so we can reconnect in interactive mode
This commit is contained in:
parent
4b93e5e267
commit
5d15b5207d
@ -56,6 +56,7 @@ static struct config {
|
||||
long repeat;
|
||||
int dbnum;
|
||||
int argn_from_stdin;
|
||||
int interactive;
|
||||
int shutdown;
|
||||
int monitor_mode;
|
||||
int pubsub_mode;
|
||||
@ -393,6 +394,7 @@ static void repl() {
|
||||
char *line;
|
||||
sds *argv;
|
||||
|
||||
config.interactive = 1;
|
||||
while((line = linenoise("redis> ")) != NULL) {
|
||||
if (line[0] != '\0') {
|
||||
argv = sdssplitargs(line,&argc);
|
||||
@ -440,6 +442,7 @@ int main(int argc, char **argv) {
|
||||
config.repeat = 1;
|
||||
config.dbnum = 0;
|
||||
config.argn_from_stdin = 0;
|
||||
config.interactive = 0;
|
||||
config.shutdown = 0;
|
||||
config.monitor_mode = 0;
|
||||
config.pubsub_mode = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user