cli/completion: add completion for --colors option
https://bugzilla.gnome.org/show_bug.cgi?id=738613
Fixes: 758e488f13
This commit is contained in:
@@ -197,6 +197,13 @@ _nmcli_compl_OPTIONS()
|
|||||||
fi
|
fi
|
||||||
_nmcli_array_delete_at words 0 1
|
_nmcli_array_delete_at words 0 1
|
||||||
;;
|
;;
|
||||||
|
colors)
|
||||||
|
if [[ "${#words[@]}" -eq 2 ]]; then
|
||||||
|
_nmcli_list "yes no auto"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
_nmcli_array_delete_at words 0 1
|
||||||
|
;;
|
||||||
fields)
|
fields)
|
||||||
if [[ "${#words[@]}" -eq 2 ]]; then
|
if [[ "${#words[@]}" -eq 2 ]]; then
|
||||||
_nmcli_list "all common
|
_nmcli_list "all common
|
||||||
@@ -683,7 +690,7 @@ _nmcli()
|
|||||||
local COMMAND_CONNECTION_ACTIVE=""
|
local COMMAND_CONNECTION_ACTIVE=""
|
||||||
|
|
||||||
HELP_ONLY_AS_FIRST=
|
HELP_ONLY_AS_FIRST=
|
||||||
local LONG_OPTIONS=(terse pretty mode fields escape nocheck ask wait version help)
|
local LONG_OPTIONS=(terse pretty mode fields colors escape nocheck ask wait version help)
|
||||||
_nmcli_compl_OPTIONS
|
_nmcli_compl_OPTIONS
|
||||||
i=$?
|
i=$?
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user