Skip to content
Snippets Groups Projects
Commit ebc8b9e4 authored by Nick Rosbrook's avatar Nick Rosbrook
Browse files

varlinkctl: set SD_JSON_FORMAT_FLUSH when --more is set

This makes it possible to process continuous replies with jq etc.
parent c89b578f
No related branches found
No related tags found
No related merge requests found
......@@ -194,9 +194,9 @@ static int parse_argv(int argc, char *argv[]) {
assert_not_reached();
}
/* If more than one reply is expected, imply JSON-SEQ output */
/* If more than one reply is expected, imply JSON-SEQ output, and set SD_JSON_FORMAT_FLUSH */
if (FLAGS_SET(arg_method_flags, SD_VARLINK_METHOD_MORE))
arg_json_format_flags |= SD_JSON_FORMAT_SEQ;
arg_json_format_flags |= SD_JSON_FORMAT_SEQ|SD_JSON_FORMAT_FLUSH;
strv_sort_uniq(arg_graceful);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment