Output any spontaneous PUSH reply we receive */
| 1276 | |
| 1277 | /* Output any spontaneous PUSH reply we receive */ |
| 1278 | static void cliPushHandler(void *privdata, void *reply) { |
| 1279 | UNUSED(privdata); |
| 1280 | sds out; |
| 1281 | |
| 1282 | if (config.output == OUTPUT_STANDARD && isInvalidateReply(reply)) { |
| 1283 | out = cliFormatInvalidateTTY(reply); |
| 1284 | } else { |
| 1285 | out = cliFormatReply(reply, config.output, 0); |
| 1286 | } |
| 1287 | |
| 1288 | fwrite(out, sdslen(out), 1, stdout); |
| 1289 | |
| 1290 | freeReplyObject(reply); |
| 1291 | sdsfree(out); |
| 1292 | } |
| 1293 | |
| 1294 | static int cliReadReply(int output_raw_strings) { |
| 1295 | void *_reply; |
nothing calls this directly
no test coverage detected