NetworkManager/clients/common
Thomas Haller 582ee91145 cli: add functionality to hide properties from output
Historically, nmcli printed all fields during operations like
`nmcli connection show "$PROFILE"`. As we supported more and
more options, this resulted in a verbose output, of most properties
just being the default values.

To counter that, we added the '-overview' option. When given,
it would hide options that are set at their default. This option
was not the default, to preserve established behavior.

However, for new options, we can afford to hide them. Add a mechanism,
that property getters can mark their value to be hidden. At the moment,
there is no way to show these properties. However, we could add a
'-verbose' option, with the opposite meaning of '-overview'. Anyway,
that does not seem necessary at the moment.

Hiding properties from output is only acceptable for new properties
(otherwise we badly change behavior), and if the properties are set
at their default values (otherwise, we hide important information).
2018-08-10 10:38:19 +02:00
..
tests build: meson: add prefix to test names 2018-04-12 09:21:10 +02:00
meson.build libnm, cli, ifcfg-rh: add NMSettingEthtool setting 2018-08-10 10:38:19 +02:00
nm-client-utils.c cli: drop NMCTriStateValue for NMTernary 2018-08-10 10:38:19 +02:00
nm-client-utils.h cli: drop NMCTriStateValue for NMTernary 2018-08-10 10:38:19 +02:00
nm-meta-setting-access.c libnm: use NMMetaSettingInfo for tracking setting priority 2018-08-10 10:38:19 +02:00
nm-meta-setting-access.h cli: remove unused argument from nm_meta_selection_create_parse_list() 2018-07-25 17:08:37 +02:00
nm-meta-setting-desc.c platform/ethtool: add code to get/set offload features via ethtool 2018-08-10 10:38:19 +02:00
nm-meta-setting-desc.h cli: add functionality to hide properties from output 2018-08-10 10:38:19 +02:00
nm-polkit-listener.c all: don't use gchar/gshort/gint/glong but C types 2018-07-11 12:02:06 +02:00
nm-polkit-listener.h all: remove consecutive empty lines 2018-04-30 16:24:52 +02:00
nm-secret-agent-simple.c all: don't use gchar/gshort/gint/glong but C types 2018-07-11 12:02:06 +02:00
nm-secret-agent-simple.h clients: drop redundant #include "NetworkManager.h" 2018-01-08 12:38:54 +01:00
nm-vpn-helpers.c all: use the elvis operator wherever possible 2018-05-10 14:36:58 +02:00
nm-vpn-helpers.h clients: drop redundant #include "NetworkManager.h" 2018-01-08 12:38:54 +01:00
settings-docs.h.in all: add connection.multi-connect property for wildcard profiles 2018-08-08 11:24:29 +02:00
settings-docs.xsl cli: fix marking settings docs for translation 2017-04-23 23:45:02 +02:00