Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7d4b600f
Commit
7d4b600f
authored
Dec 10, 2018
by
antirez
Browse files
RESP3: redis-cli support for boolean in TTY output.
parent
dfa9d2c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
7d4b600f
...
@@ -822,6 +822,9 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
...
@@ -822,6 +822,9 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
case REDIS_REPLY_NIL:
case REDIS_REPLY_NIL:
out = sdscat(out,"(nil)\n");
out = sdscat(out,"(nil)\n");
break;
break;
case REDIS_REPLY_BOOL:
out = sdscat(out,r->integer ? "(true)\n" : "(false)\n");
break;
case REDIS_REPLY_ARRAY:
case REDIS_REPLY_ARRAY:
case REDIS_REPLY_MAP:
case REDIS_REPLY_MAP:
case REDIS_REPLY_SET:
case REDIS_REPLY_SET:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment