machinectl: do not ellipsize table when --full is specified

This commit is contained in:
Yu Watanabe 2020-01-10 12:24:51 +09:00
parent 2a6c483b8c
commit a65e34ccb0
2 changed files with 7 additions and 1 deletions

View file

@ -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>

View file

@ -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)");