diff options
| author | Beniamino Galvani <bgalvani@redhat.com> | 2018-02-27 16:28:28 +0100 |
|---|---|---|
| committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-04-13 17:02:55 +0200 |
| commit | 9a19bbcb2f6b78be2541334a0d650e765a11fa2b (patch) | |
| tree | 61a811995c867957ceedee67567e32824ab816db /clients/cli/nmcli.h | |
| parent | 50414353e13ceaf836c951d370ecba1b7e1c2cbc (diff) | |
| download | NetworkManager-9a19bbcb2f6b78be2541334a0d650e765a11fa2b.tar.gz | |
nmcli: add overview option to skip default values in output
Add a new 'overview' command line option to make the output more
compact and display only properties that have non-default
values. Currently the option has only effect for the "connection show
$CON" sub-command.
$ nmcli -o connection show wifi-home
connection.id: wifi-home
connection.uuid: 8308c425-f2a7-4021-9afc-37bde7253c6d
connection.type: 802-11-wireless
connection.timestamp: 1519264421
connection.permissions: user:me
802-11-wireless.ssid: home
802-11-wireless.mode: infrastructure
802-11-wireless-security.key-mgmt: wpa-psk
802-11-wireless-security.auth-alg: open
ipv4.method: auto
ipv6.method: auto
https://bugzilla.redhat.com/show_bug.cgi?id=1434527
Diffstat (limited to 'clients/cli/nmcli.h')
| -rw-r--r-- | clients/cli/nmcli.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/cli/nmcli.h b/clients/cli/nmcli.h index cccad8462a..cbde4359f9 100644 --- a/clients/cli/nmcli.h +++ b/clients/cli/nmcli.h @@ -116,6 +116,7 @@ typedef struct _NmcConfig { bool escape_values; /* Whether to escape ':' and '\' in terse tabular mode */ bool in_editor; /* Whether running the editor - nmcli con edit' */ bool show_secrets; /* Whether to display secrets (both input and output): option '--show-secrets' */ + bool overview; /* Overview mode (hide default values) */ } NmcConfig; typedef struct _NmcOutputData { |
