Output any spontaneous PUSH reply we receive */
| 1083 | |
| 1084 | /* Output any spontaneous PUSH reply we receive */ |
| 1085 | static void cliPushHandler(void *privdata, void *reply) { |
| 1086 | UNUSED(privdata); |
| 1087 | sds out; |
| 1088 | |
| 1089 | if (config.output == OUTPUT_STANDARD && isInvalidateReply(reply)) { |
| 1090 | out = cliFormatInvalidateTTY(reply); |
| 1091 | } else { |
| 1092 | out = cliFormatReply(reply, config.output, 0); |
| 1093 | } |
| 1094 | |
| 1095 | fwrite(out, sdslen(out), 1, stdout); |
| 1096 | |
| 1097 | freeReplyObject(reply); |
| 1098 | sdsfree(out); |
| 1099 | } |
| 1100 | |
| 1101 | static int cliReadReply(int output_raw_strings) { |
| 1102 | void *_reply; |
nothing calls this directly
no test coverage detected