diff options
author | antirez <antirez@gmail.com> | 2018-12-10 17:11:42 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-12-21 11:42:52 +0100 |
commit | 0cee6355b8a553c6e31b81bfdcaeab935a3eefa8 (patch) | |
tree | dbd999010bbad3d5872b0706330e44fc2ee90a89 | |
parent | d82656b2c790e5889d373ffc8264e6c3339c6317 (diff) | |
download | redis-0cee6355b8a553c6e31b81bfdcaeab935a3eefa8.tar.gz |
RESP3: redis-cli support for boolean in TTY output.
-rw-r--r-- | src/redis-cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 9e15e1565..4e3638fc1 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: |