Home
last modified time | relevance | path

Searched refs:arg_output (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/userdb/
Duserdbctl.c32 } arg_output = _OUTPUT_INVALID; variable
71 switch (arg_output) { in show_user()
352 if (arg_output < 0) in display_user()
353 arg_output = argc > 1 ? OUTPUT_FRIENDLY : OUTPUT_TABLE; in display_user()
355 if (arg_output == OUTPUT_TABLE) { in display_user()
387 if (draw_separator && arg_output == OUTPUT_FRIENDLY) in display_user()
419 if (draw_separator && arg_output == OUTPUT_FRIENDLY) in display_user()
473 switch (arg_output) { in show_group()
662 if (arg_output < 0) in display_group()
663 arg_output = argc > 1 ? OUTPUT_FRIENDLY : OUTPUT_TABLE; in display_group()
[all …]
/systemd-251/src/journal-remote/
Djournal-remote-main.c44 static const char* arg_output = NULL; variable
602 arg_output, in create_remoteserver()
657 r = journal_remote_add_source(s, fd, (char*) arg_output, false); in create_remoteserver()
960 if (arg_output) in parse_argv()
964 arg_output = optarg; in parse_argv()
1027 if (!arg_output) in parse_argv()
1041 if (arg_split_mode == JOURNAL_WRITE_SPLIT_NONE && arg_output) { in parse_argv()
1042 if (is_dir(arg_output, true) > 0) in parse_argv()
1045 if (!endswith(arg_output, ".journal")) in parse_argv()
1051 && arg_output && is_dir(arg_output, true) <= 0) in parse_argv()
/systemd-251/src/login/
Dloginctl.c52 static OutputMode arg_output = OUTPUT_SHORT; variable
91 if (table_get_rows(table) > 1 || OUTPUT_MODE_IS_JSON(arg_output)) { in show_table()
98 if (OUTPUT_MODE_IS_JSON(arg_output)) in show_table()
99 …r = table_print_json(table, NULL, output_mode_to_json_format_flags(arg_output) | JSON_FORMAT_COLOR… in show_table()
547 arg_output, in print_session_status_info()
624 arg_output, in print_user_status_info()
1368 arg_output = output_mode_from_string(optarg); in parse_argv()
1369 if (arg_output < 0) in parse_argv()
1370 return log_error_errno(arg_output, "Unknown output '%s'.", optarg); in parse_argv()
1372 if (OUTPUT_MODE_IS_JSON(arg_output)) in parse_argv()
/systemd-251/src/systemctl/
Dsystemctl-set-environment.c83 if (OUTPUT_MODE_IS_JSON(arg_output)) { in verb_show_environment()
90 json_variant_dump(v, output_mode_to_json_format_flags(arg_output), stdout, NULL); in verb_show_environment()
Dsystemctl.c101 OutputMode arg_output = OUTPUT_SHORT; variable
734 arg_output = output_mode_from_string(optarg); in systemctl_parse_argv()
735 if (arg_output < 0) in systemctl_parse_argv()
740 if (OUTPUT_MODE_IS_JSON(arg_output)) { in systemctl_parse_argv()
Dsystemctl.h86 extern OutputMode arg_output;
Dsystemctl-util.c832 if (OUTPUT_MODE_IS_JSON(arg_output)) in output_table()
833 …r = table_print_json(table, NULL, output_mode_to_json_format_flags(arg_output) | JSON_FORMAT_COLOR… in output_table()
Dsystemctl-show.c775 arg_output, in print_status_info()
/systemd-251/src/coredump/
Dcoredumpctl.c56 static const char* arg_output = NULL; variable
271 if (arg_output) in parse_argv()
275 arg_output = optarg; in parse_argv()
1060 if (arg_output) { in dump_core()
1061 f = fopen(arg_output, "we"); in dump_core()
1063 … return log_error_errno(errno, "Failed to open \"%s\" for writing: %m", arg_output); in dump_core()
/systemd-251/src/journal/
Djournalctl.c87 static OutputMode arg_output = OUTPUT_SHORT; variable
575 arg_output = output_mode_from_string(optarg); in parse_argv()
576 if (arg_output < 0) in parse_argv()
577 … return log_error_errno(arg_output, "Unknown output format '%s'.", optarg); in parse_argv()
579 …if (IN_SET(arg_output, OUTPUT_EXPORT, OUTPUT_JSON, OUTPUT_JSON_PRETTY, OUTPUT_JSON_SSE, OUTPUT_JSO… in parse_argv()
582 if (OUTPUT_MODE_IS_JSON(arg_output)) in parse_argv()
583 … arg_json_format_flags = output_mode_to_json_format_flags(arg_output) | JSON_FORMAT_COLOR_AUTO; in parse_argv()
2755 r = show_journal_entry(stdout, j, arg_output, 0, flags, in main()
/systemd-251/src/machine/
Dmachinectl.c79 static OutputMode arg_output = OUTPUT_SHORT; variable
241 if (table_get_rows(table) > 1 || OUTPUT_MODE_IS_JSON(arg_output)) { in show_table()
248 if (OUTPUT_MODE_IS_JSON(arg_output)) in show_table()
249 …r = table_print_json(table, NULL, output_mode_to_json_format_flags(arg_output) | JSON_FORMAT_COLOR… in show_table()
598 arg_output, in print_machine_status_info()
2689 arg_output = r; in parse_argv()
2691 if (OUTPUT_MODE_IS_JSON(arg_output)) in parse_argv()