Skip to content

Commit a65e34c

Browse files
committed
machinectl: do not ellipsize table when --full is specified
1 parent 2a6c483 commit a65e34c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

man/machinectl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@
680680
<term><option>-l</option></term>
681681
<term><option>--full</option></term>
682682

683-
<listitem><para>Do not ellipsize process tree entries.</para>
683+
<listitem><para>Do not ellipsize process tree entries or table.</para>
684684
</listitem>
685685
</varlistentry>
686686

src/machine/machinectl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ static int list_machines(int argc, char *argv[], void *userdata) {
306306
if (!table)
307307
return log_oom();
308308

309+
if (arg_full)
310+
table_set_width(table, 0);
311+
309312
r = sd_bus_message_enter_container(reply, 'a', "(ssso)");
310313
if (r < 0)
311314
return bus_log_parse_error(r);
@@ -386,6 +389,9 @@ static int list_images(int argc, char *argv[], void *userdata) {
386389
if (!table)
387390
return log_oom();
388391

392+
if (arg_full)
393+
table_set_width(table, 0);
394+
389395
(void) table_set_align_percent(table, TABLE_HEADER_CELL(3), 100);
390396

391397
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssbttto)");

0 commit comments

Comments
 (0)