mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 04:00:09 +01:00
cli/completion: add completion for --colors option
https://bugzilla.gnome.org/show_bug.cgi?id=738613
Fixes: 758e488f13
This commit is contained in:
parent
6ccb888831
commit
d0fbb688f5
1 changed files with 8 additions and 1 deletions
|
|
@ -197,6 +197,13 @@ _nmcli_compl_OPTIONS()
|
|||
fi
|
||||
_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)
|
||||
if [[ "${#words[@]}" -eq 2 ]]; then
|
||||
_nmcli_list "all common
|
||||
|
|
@ -683,7 +690,7 @@ _nmcli()
|
|||
local COMMAND_CONNECTION_ACTIVE=""
|
||||
|
||||
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
|
||||
i=$?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue