From: Oliver Kiddle <opk@zsh.org>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: update networkmanager completion
Date: Thu, 02 Nov 2023 16:23:21 +0100 [thread overview]
Message-ID: <21116-1698938601.204202@aGdN.2i7N.kgWZ> (raw)
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() {
reply other threads:[~2023-11-02 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21116-1698938601.204202@aGdN.2i7N.kgWZ \
--to=opk@zsh.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).