NetworkManager/clients/cli
Lubomir Rintel 9dfe825840 cli: rework enabling and disabling colors
This actually makes very little difference at the moment, but will make
things more confortable later on, when the logic of enabling/disabling
coloring will involve terminal-colors.d(5).

Instead of deciding whether to use colors lazily with use_colors(), it's
done very early on nmcli initialization and a boolean use_colors field
is stored in the NmcConfig instance instead of the raw tristate option
of NmcColorOption type (which is now confined to nmcli.c).

Wherever the NmcColorOption was used previously, the whole NmcConfig
instance is passed around. That might seem pointless (since only the
use_colors boolean is actually used at the moment), but will be utilized
to pass around the actual color palette in future.
2018-05-10 14:36:58 +02:00
..
agent.c all: remove consecutive empty lines 2018-04-30 16:24:52 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: sort DHCP options in connection show output 2018-04-23 15:44:44 +02:00
common.h cli: merge IPv4 and IPv6 variants of print_dhcp_config() 2018-04-23 15:43:39 +02:00
connections.c cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
connections.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
devices.c cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
devices.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
general.c cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build build/meson: use variables for ldflags and linker-script 2018-01-11 12:46:01 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
nmcli.h cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
polkit-agent.c cli: rework callbacks in NMPolkitListener to use one vtable structure 2018-04-16 16:03:14 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c all: use the elvis operator wherever possible 2018-05-10 14:36:58 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00
utils.h cli: rework enabling and disabling colors 2018-05-10 14:36:58 +02:00