zsh-workers
 help / color / mirror / code / Atom feed
From: Romain Porte <debian@microjoe.org>
To: zsh-workers@zsh.org
Cc: Daniel Shahaf <danielsh@apache.org>
Subject: completion: proposal for Completion/Debian/_dscverify
Date: Mon, 9 Mar 2020 15:45:52 +0100	[thread overview]
Message-ID: <b998f6b1-cf22-3c79-ea51-4565ae00720b@microjoe.org> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 508 bytes --]

Hello dear ZSH workers,

Attached in a proposal of completion for the "dscverify" Debian command
shipped with Debian's devtools package. The file has been reviewed by
Daniel during our initial discussion on the Debian bugtracker [1], but
of course we may have forgotten some details.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953389

As the other devtools completions are coming from upstream zsh, I think
this completion should also make its way through upstream.

Best regards,


[-- Attachment #1.1.2: add-dscverify-completion-v3.diff --]
[-- Type: text/x-patch, Size: 1237 bytes --]

diff -u -N --recursive ../zsh-5.8.orig/Completion/Debian/Command/_dscverify ./Completion/Debian/Command/_dscverify
--- ../zsh-5.8.orig/Completion/Debian/Command/_dscverify	1970-01-01 01:00:00.000000000 +0100
+++ ./Completion/Debian/Command/_dscverify	2020-03-09 15:36:16.206314783 +0100
@@ -0,0 +1,30 @@
+#compdef dscverify
+
+# $ dscverify --version
+# This is dscverify, from the Debian devscripts package, version 2.20.2
+# ...
+
+_dscverify() {
+  local all_opts=(
+    '--help[show the help message and exit]'
+    '--version[show the version + copyright and exit]'
+    '--no-default-keyrings[do not check against the default keyrings]'
+    '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.{kbx,gpg}(-.)"'
+    '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}'[do not verify the GPG signature]'
+    '--verbose[do not suppress GPG output]'
+    '*:dsc file:_files -g "*.{changes,dsc,buildinfo}(-.)"'
+  )
+
+  local first_only=(
+    '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read the devscripts config file]'
+  )
+
+  if (( CURRENT == 2 )); then
+    all_opts+=($first_only)
+  fi
+
+  _arguments \
+    "$all_opts[@]"
+}
+
+_dscverify "$@"

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2020-03-09 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 14:45 Romain Porte [this message]
2020-03-10 15:32 ` Daniel Shahaf

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=b998f6b1-cf22-3c79-ea51-4565ae00720b@microjoe.org \
    --to=debian@microjoe.org \
    --cc=danielsh@apache.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).