RESP3: varbatim handling for other redis-cli outputs.

This commit is contained in:
antirez 2019-09-23 17:42:57 +02:00
parent d097eebf06
commit cd446eb161

View File

@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
break;
case REDIS_REPLY_STATUS:
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) {
/* The Lua debugger replies with arrays of simple (status)
* strings. We colorize the output for more fun if this
@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out = sdscatprintf(out,"%lld",r->integer);
break;
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
out = sdscatrepr(out,r->str,r->len);
break;
case REDIS_REPLY_NIL: