From 7d4b600f5df045eb08f49bb33af9a4a75cb480b2 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 10 Dec 2018 17:11:42 +0100 Subject: [PATCH] RESP3: redis-cli support for boolean in TTY output. --- src/redis-cli.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/redis-cli.c b/src/redis-cli.c index b8934eda..a74493ef 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -822,6 +822,9 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) { case REDIS_REPLY_NIL: out = sdscat(out,"(nil)\n"); break; + case REDIS_REPLY_BOOL: + out = sdscat(out,r->integer ? "(true)\n" : "(false)\n"); + break; case REDIS_REPLY_ARRAY: case REDIS_REPLY_MAP: case REDIS_REPLY_SET: