NetworkManager/clients/cli
Beniamino Galvani db07b867a6 cli: restore previous name of IN-USE AP property
Before commit a63c4d0824 ("cli: use designated initializers for
setting NmcOutputField fields") each field had a @name and a
@name_l10n , which were equal for all properties except for wifi
IN-USE:

 {"IN-USE",     N_("*")},          /* 15 */

The commit removed @name_l10n so now the displayed name is equal to
the field name. But now:

 $ nmcli device wifi list
 Error: 'device wifi': invalid field 'IN-USE'; allowed fields:
 NAME,SSID,SSID-HEX,BSSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY,
 WPA-FLAGS,RSN-FLAGS,DEVICE,ACTIVE,*,DBUS-PATH

The new field name should be 'IN-USE' and not '*', otherwise scripts
doing "-f IN-USE" will break. As a side effect we now show 'IN-USE'
instead of '*' in the column header, which seems easier to understand:

IN-USE  SSID     MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
*       default  Infra  5     54 Mbit/s  71      ▂▄▆_  WPA2
        guest    Infra  1     54 Mbit/s  62      ▂▄▆_  WPA2

Fixes: a63c4d0824
2017-04-01 21:33:11 +02:00
..
agent.c cli: pass configuration options separately from NmCli structure 2017-03-30 13:09:59 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
common.h cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
connections.c cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
connections.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
devices.c cli: restore previous name of IN-USE AP property 2017-04-01 21:33:11 +02:00
devices.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
general.c cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
nmcli.h cli: don't track output data in global NmCli structure 2017-03-30 14:56:21 +02:00
polkit-agent.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: embed gtk-doc directly in property-info structure 2017-03-30 16:35:52 +02:00
settings.h cli: split nm-meta-setting-desc out of settings 2017-03-30 13:09:58 +02:00
utils.c cli: split print_data() in a part with and without side-effects 2017-03-30 13:46:09 +02:00
utils.h cli: split print_data() in a part with and without side-effects 2017-03-30 13:46:09 +02:00