diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-01-10 04:12:00 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-01-10 04:12:00 +0100 |
commit | a42d94908003983a3064d65aca1ce2a88ddbc2cd (patch) | |
tree | 8e3764b4bbe128e7579453813484f9d50755d94b /src/network/networkctl.c | |
parent | systemd-mount: add --full command line option (diff) | |
download | systemd-a42d94908003983a3064d65aca1ce2a88ddbc2cd.tar.xz systemd-a42d94908003983a3064d65aca1ce2a88ddbc2cd.zip |
networkctl: set table width 0 when --full is specified
Diffstat (limited to '')
-rw-r--r-- | src/network/networkctl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index e6dc70a0e2..de2f440b4c 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -518,6 +518,9 @@ static int list_links(int argc, char *argv[], void *userdata) { if (!table) return log_oom(); + if (arg_full) + table_set_width(table, 0); + table_set_header(table, arg_legend); assert_se(cell = table_get_cell(table, 0, 0)); @@ -840,6 +843,9 @@ static int dump_address_labels(sd_netlink *rtnl) { if (!table) return -ENOMEM; + if (arg_full) + table_set_width(table, 0); + r = table_set_sort(table, 0, SIZE_MAX); if (r < 0) return r; @@ -1197,6 +1203,9 @@ static int link_status_one( if (!table) return -ENOMEM; + if (arg_full) + table_set_width(table, 0); + assert_se(cell = table_get_cell(table, 0, 0)); (void) table_set_ellipsize_percent(table, cell, 100); @@ -1575,6 +1584,9 @@ static int system_status(sd_netlink *rtnl, sd_hwdb *hwdb) { if (!table) return -ENOMEM; + if (arg_full) + table_set_width(table, 0); + assert_se(cell = table_get_cell(table, 0, 0)); (void) table_set_ellipsize_percent(table, cell, 100); @@ -1742,6 +1754,9 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) { if (!table) return -ENOMEM; + if (arg_full) + table_set_width(table, 0); + table_set_header(table, arg_legend); assert_se(cell = table_get_cell(table, 0, 0)); |