* PATCH: update networkmanager completion
@ 2023-11-02 15:23 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2023-11-02 15:23 UTC (permalink / raw)
To: Zsh workers
This is an update for nmcli completion for networkmanager 1.42.2.
Oliver
diff --git a/Completion/Linux/Command/_networkmanager b/Completion/Linux/Command/_networkmanager
index 1e05252b2..d44c313db 100644
--- a/Completion/Linux/Command/_networkmanager
+++ b/Completion/Linux/Command/_networkmanager
@@ -42,8 +42,24 @@ _nm_fields() {
}
_nm_general() {
- _arguments "1:command:(status hostname permissions logging help)"
- # TODO: provide completions for logging
+ local curcontext="$curcontext" state line
+ _arguments "1:command:(status hostname permissions logging reload help)" \
+ "*::arguments:->args"
+
+ case $line[1] in
+ l*)
+ _values -w -S ' ' values \
+ 'level:level' \
+ 'domains:domain'
+ ;;
+ r*)
+ _describe -t flags 'flag' '(
+ "conf:NetworkManager.conf configuration"
+ "dns-rc:update DNS configuration"
+ "dns-full:restart the DNS plugin"
+ )'
+ ;;
+ esac
}
_nm_networking() {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-02 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02 15:23 PATCH: update networkmanager completion Oliver Kiddle
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).