mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
machinectl: do not ellipsize table when --full is specified
This commit is contained in:
parent
2a6c483b8c
commit
a65e34ccb0
@ -680,7 +680,7 @@
|
||||
<term><option>-l</option></term>
|
||||
<term><option>--full</option></term>
|
||||
|
||||
<listitem><para>Do not ellipsize process tree entries.</para>
|
||||
<listitem><para>Do not ellipsize process tree entries or table.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
@ -306,6 +306,9 @@ static int list_machines(int argc, char *argv[], void *userdata) {
|
||||
if (!table)
|
||||
return log_oom();
|
||||
|
||||
if (arg_full)
|
||||
table_set_width(table, 0);
|
||||
|
||||
r = sd_bus_message_enter_container(reply, 'a', "(ssso)");
|
||||
if (r < 0)
|
||||
return bus_log_parse_error(r);
|
||||
@ -386,6 +389,9 @@ static int list_images(int argc, char *argv[], void *userdata) {
|
||||
if (!table)
|
||||
return log_oom();
|
||||
|
||||
if (arg_full)
|
||||
table_set_width(table, 0);
|
||||
|
||||
(void) table_set_align_percent(table, TABLE_HEADER_CELL(3), 100);
|
||||
|
||||
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssbttto)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user