zsh-workers
 help / color / mirror / code / Atom feed
* completion: proposal for Completion/Debian/_dscverify
@ 2020-03-09 14:45 Romain Porte
  2020-03-10 15:32 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Romain Porte @ 2020-03-09 14:45 UTC (permalink / raw)
  To: zsh-workers; +Cc: Daniel Shahaf


[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-10 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 14:45 completion: proposal for Completion/Debian/_dscverify Romain Porte
2020-03-10 15:32 ` Daniel Shahaf

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).