Home
last modified time | relevance | path

Searched refs:arg_json_format_flags (Results 1 – 17 of 17) sorted by relevance

/systemd-251/src/userdb/
Duserdbctl.c38 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
88 json_variant_dump(ur->json, arg_json_format_flags, NULL, 0); in show_user()
449 … r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); in display_user()
493 json_variant_dump(gr->json, arg_json_format_flags, NULL, 0); in show_group()
758 … r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); in display_group()
801 json_variant_dump(v, arg_json_format_flags, NULL, NULL); in show_membership()
906 … r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); in display_memberships()
977 r = table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in display_services()
1214arg_json_format_flags = arg_output == OUTPUT_JSON ? JSON_FORMAT_PRETTY|JSON_FORMAT_COLOR_AUTO : JS… in parse_argv()
1218 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
[all …]
/systemd-251/src/dissect/
Ddissect.c57 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
282 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
418 if (arg_json_format_flags & (JSON_FORMAT_OFF|JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO)) in action_dissect()
421 if (arg_json_format_flags & JSON_FORMAT_OFF) in action_dissect()
426 else if (arg_json_format_flags & JSON_FORMAT_OFF) in action_dissect()
429 if (arg_json_format_flags & JSON_FORMAT_OFF) in action_dissect()
445 else if (arg_json_format_flags & JSON_FORMAT_OFF) { in action_dissect()
599 if (arg_json_format_flags & JSON_FORMAT_OFF) { in action_dissect()
616 json_variant_dump(v, arg_json_format_flags, stdout, NULL); in action_dissect()
/systemd-251/src/creds/
Dcreds.c37 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
223 if ((arg_json_format_flags & JSON_FORMAT_OFF) && table_get_rows(t) <= 1) { in verb_list()
228 return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in verb_list()
320 arg_json_format_flags != JSON_FORMAT_OFF) { in write_blob()
336 json_variant_dump(v, arg_json_format_flags, f, NULL); in write_blob()
759 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
/systemd-251/src/hostname/
Dhostnamectl.c35 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
367 if (arg_json_format_flags != JSON_FORMAT_OFF) { in show_status()
393 json_variant_dump(v, arg_json_format_flags, NULL, NULL); in show_status()
649 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
/systemd-251/src/busctl/
Dbusctl.c37 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
357 return table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); in list_bus_names()
1202 json_variant_dump(w, arg_json_format_flags, f, NULL); in message_json()
1328 …return monitor(argc, argv, (arg_json_format_flags & JSON_FORMAT_OFF) ? message_dump : message_json… in verb_monitor()
2044 if (!FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in call()
2047 if (arg_json_format_flags & (JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO)) in call()
2054 json_variant_dump(v, arg_json_format_flags, NULL, NULL); in call()
2152 if (!FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in get_property()
2155 if (arg_json_format_flags & (JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO)) in get_property()
2162 json_variant_dump(v, arg_json_format_flags, NULL, NULL); in get_property()
[all …]
/systemd-251/src/sysext/
Dsysext.c41 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
233 r = table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in verb_status()
854 if ((arg_json_format_flags & JSON_FORMAT_OFF) && hashmap_isempty(images)) { in verb_list()
876 return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in verb_list()
967 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
/systemd-251/src/analyze/
Danalyze.c104 JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
437 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
495 …if (arg_json_format_flags != JSON_FORMAT_OFF && !STRPTR_IN_SET(argv[optind], "security", "inspect-… in parse_argv()
Danalyze.h36 extern JsonFormatFlags arg_json_format_flags;
Danalyze-inspect-elf.c133 return analyze_elf(strv_skip(argv, 1), arg_json_format_flags); in verb_elf_inspection()
Danalyze-security.c2952 arg_json_format_flags, in verb_security()
/systemd-251/src/sysupdate/
Dsysupdate.c40 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
455 return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in context_show_table()
485 if (arg_json_format_flags & (JSON_FORMAT_OFF|JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO)) in context_show_version()
488 if (FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) in context_show_version()
661 return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in context_show_version()
1311 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
/systemd-251/src/home/
Dhomectl.c70 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
182 if (table_get_rows(table) > 1 || !FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in list_homes()
187 … r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); in list_homes()
192 if (arg_legend && (arg_json_format_flags & JSON_FORMAT_OFF)) { in list_homes()
651 if (arg_json_format_flags & JSON_FORMAT_OFF) in dump_home_record()
667 json_variant_dump(hr->json, arg_json_format_flags, stdout, NULL); in dump_home_record()
3634 arg_json_format_flags = JSON_FORMAT_PRETTY_AUTO|JSON_FORMAT_COLOR_AUTO; in parse_argv()
3638 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
3652 arg_json_format_flags &= ~JSON_FORMAT_OFF; in parse_argv()
3653 if (arg_json_format_flags == 0) in parse_argv()
[all …]
/systemd-251/src/coredump/
Dcoredumpctl.c52 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
327 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
895 r = table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in dump_list()
/systemd-251/src/boot/
Dbootctl.c76 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
1470 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
1733 if (config.n_entries == 0 && FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in verb_list()
1739 return show_boot_entries(&config, arg_json_format_flags); in verb_list()
/systemd-251/src/network/
Dnetworkctl.c80 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
111 json_variant_dump(v, arg_json_format_flags, NULL, NULL); in dump_manager_description()
156 json_variant_dump(i, arg_json_format_flags, NULL, NULL); in dump_link_description()
795 if (arg_json_format_flags != JSON_FORMAT_OFF) { in list_links()
2389 if (arg_json_format_flags != JSON_FORMAT_OFF) { in link_status()
2893 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()
/systemd-251/src/journal/
Djournalctl.c88 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
583arg_json_format_flags = output_mode_to_json_format_flags(arg_output) | JSON_FORMAT_COLOR_AUTO; in parse_argv()
585 arg_json_format_flags = JSON_FORMAT_OFF; in parse_argv()
1489 r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, !arg_quiet); in list_boots()
/systemd-251/src/partition/
Drepart.c107 static JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF; variable
1991 if ((arg_json_format_flags & JSON_FORMAT_OFF) && context->n_partitions == 0) { in context_dump_partitions()
2001 if (arg_json_format_flags & JSON_FORMAT_OFF) in context_dump_partitions()
2065 if ((arg_json_format_flags & JSON_FORMAT_OFF) && (sum_padding > 0 || sum_size > 0)) { in context_dump_partitions()
2090 return table_print_with_pager(t, arg_json_format_flags, arg_pager_flags, arg_legend); in context_dump_partitions()
3458 !FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in context_write_partition_table()
3464 if (arg_json_format_flags & JSON_FORMAT_OFF) in context_write_partition_table()
4288 r = parse_json_argument(optarg, &arg_json_format_flags); in parse_argv()