Debian Codegraph @

debian/completions/_gpg-sq

raw
1 #compdef gpg-sq
2
3 autoload -U is-at-least
4
5 _gpg-sq() {
6 typeset -A opt_args
7 typeset -a _arguments_options
8 local ret=1
9
10 if is-at-least 5.2; then
11 _arguments_options=(-s -S -C)
12 else
13 _arguments_options=(-s -C)
14 fi
15
16 local context curcontext="$curcontext" state line
17 _arguments "${_arguments_options[@]}" \
18 '--tofu-policy=[set the TOFU policy for a key]:VALUE: ' \
19 '--options=[read options from FILE]:FILE: ' \
20 '--log-file=[write server mode logs to FILE]:FILE: ' \
21 '--default-key=[use NAME as default secret key]:NAME: ' \
22 '--encrypt-to=[encrypt to user ID NAME as well]:NAME: ' \
23 '--group=[set up email aliases]:SPEC: ' \
24 '-o+[write output to FILE]:FILE: ' \
25 '--output=[write output to FILE]:FILE: ' \
26 '-z+[set compress level to N (0 disables)]:N: ' \
27 '--auto-key-locate=[use MECHANISMS to locate keys by mail address]:MECHANISMS: ' \
28 '-r+[encrypt for USERID]:USERID: ' \
29 '--recipient=[encrypt for USERID]:USERID: ' \
30 '-u+[use USERID to sign or decrypt]:USERID: ' \
31 '--local-user=[use USERID to sign or decrypt]:USERID: ' \
32 '-s[make a signature]' \
33 '--sign[make a signature]' \
34 '--clear-sign[make a clear text signature]' \
35 '--clearsign[@]' \
36 '-b[make a detached signature]' \
37 '--detach-sign[make a detached signature]' \
38 '-e[encrypt data]' \
39 '--encrypt[encrypt data]' \
40 '--encrypt-files[@]' \
41 '-c[encryption only with symmetric cipher]' \
42 '--symmetric[encryption only with symmetric cipher]' \
43 '--store[@]' \
44 '-d[decrypt data (default)]' \
45 '--decrypt[decrypt data (default)]' \
46 '--decrypt-files[@]' \
47 '--verify[verify a signature]' \
48 '--verify-files[@]' \
49 '-k[list keys]' \
50 '--list-keys[list keys]' \
51 '--list-public-keys[@]' \
52 '--list-signatures[list keys and signatures]' \
53 '--list-sigs[@]' \
54 '--check-signatures[list and check key signatures]' \
55 '--check-sigs[@]' \
56 '--fingerprint[list keys and fingerprints]' \
57 '-K[list secret keys]' \
58 '--list-secret-keys[list secret keys]' \
59 '--generate-key[generate a new key pair]' \
60 '--gen-key[@]' \
61 '--quick-generate-key[quickly generate a new key pair]' \
62 '--quick-gen-key[@]' \
63 '--quick-add-uid[quickly add a new user-id]' \
64 '--quick-adduid[@]' \
65 '--quick-add-key[@]' \
66 '--quick-addkey[@]' \
67 '--quick-revoke-uid[quickly revoke a user-id]' \
68 '--quick-revuid[@]' \
69 '--quick-set-expire[quickly set a new expiration date]' \
70 '--quick-set-primary-uid[@]' \
71 '--full-generate-key[full featured key pair generation]' \
72 '--full-gen-key[@]' \
73 '--generate-revocation[generate a revocation certificate]' \
74 '--gen-revoke[@]' \
75 '--delete-keys[remove keys from the public keyring]' \
76 '--delete-secret-keys[remove keys from the secret keyring]' \
77 '--quick-sign-key[quickly sign a key]' \
78 '--quick-lsign-key[quickly sign a key locally]' \
79 '--quick-revoke-sig[quickly revoke a key signature]' \
80 '--sign-key[sign a key]' \
81 '--lsign-key[sign a key locally]' \
82 '--edit-key[sign or edit a key]' \
83 '--key-edit[@]' \
84 '--change-passphrase[change a passphrase]' \
85 '--passwd[@]' \
86 '--generate-designated-revocation[@]' \
87 '--desig-revoke[@]' \
88 '--export[export keys]' \
89 '--send-keys[export keys to a keyserver]' \
90 '--receive-keys[import keys from a keyserver]' \
91 '--recv-keys[@]' \
92 '--search-keys[search for keys on a keyserver]' \
93 '--refresh-keys[update all keys from a keyserver]' \
94 '--locate-keys[@]' \
95 '--locate-external-keys[@]' \
96 '--fetch-keys[@]' \
97 '--show-keys[@]' \
98 '--export-secret-keys[@]' \
99 '--export-secret-subkeys[@]' \
100 '--export-ssh-key[@]' \
101 '--import[import/merge keys]' \
102 '--fast-import[@]' \
103 '--list-config[@]' \
104 '--list-gcrypt-config[@]' \
105 '--gpgconf-list[@]' \
106 '--gpgconf-test[@]' \
107 '--list-packets[@]' \
108 '--export-ownertrust[@]' \
109 '--import-ownertrust[@]' \
110 '--update-trustdb[update the trust database]' \
111 '--check-trustdb[@]' \
112 '--fix-trustdb[@]' \
113 '--list-trustdb[@]' \
114 '--dearmor[@]' \
115 '--dearmour[@]' \
116 '--enarmor[@]' \
117 '--enarmour[@]' \
118 '--print-md[print message digests]' \
119 '--print-mds[@]' \
120 '--gen-prime[@]' \
121 '--gen-random[@]' \
122 '--server[run in server mode]' \
123 '--delete-secret-and-public-keys[@]' \
124 '--rebuild-keydb-caches[@]' \
125 '--list-key[@]' \
126 '--list-sig[@]' \
127 '--check-sig[@]' \
128 '--show-key[@]' \
129 '--Monitor[Options controlling the diagnostic output]' \
130 '-v[verbose]' \
131 '--verbose[verbose]' \
132 '--no-verbose[@]' \
133 '-q[be somewhat more quiet]' \
134 '--quiet[be somewhat more quiet]' \
135 '--no-tty[@]' \
136 '--no-greeting[@]' \
137 '--debug[@]' \
138 '--debug-level[@]' \
139 '--debug-all[@]' \
140 '--debug-iolbf[@]' \
141 '--display-charset[@]' \
142 '--charset[@]' \
143 '--no-options[@]' \
144 '--logger-fd[@]' \
145 '--logger-file[@]' \
146 '--debug-quick-random[@]' \
147 '--Configuration[Options controlling the configuration]' \
148 '--homedir[@]' \
149 '--faked-system-time[@]' \
150 '--no-encrypt-to[@]' \
151 '--hidden-encrypt-to[@]' \
152 '--encrypt-to-default-key[@]' \
153 '--default-recipient[@]' \
154 '--default-recipient-self[@]' \
155 '--no-default-recipient[@]' \
156 '--ungroup[@]' \
157 '--no-groups[@]' \
158 '--compliance[@]' \
159 '--gnupg[@]' \
160 '--no-pgp2[@]' \
161 '--no-pgp6[@]' \
162 '--no-pgp7[@]' \
163 '--no-pgp8[@]' \
164 '--rfc2440[@]' \
165 '--rfc4880[@]' \
166 '--rfc4880bis[@]' \
167 '--openpgp[use strict OpenPGP behavior]' \
168 '--pgp6[@]' \
169 '--pgp7[@]' \
170 '--pgp8[@]' \
171 '--default-new-key-algo[@]' \
172 '--min-rsa-length[@]' \
173 '--always-trust[@]' \
174 '--trust-model[@]' \
175 '--photo-viewer[@]' \
176 '--known-notation[@]' \
177 '--agent-program[@]' \
178 '--dirmngr-program[@]' \
179 '--exit-on-status-write-error[@]' \
180 '--limit-card-insert-tries[@]' \
181 '--enable-progress-filter[@]' \
182 '--temp-directory[@]' \
183 '--exec-path[@]' \
184 '--expert[@]' \
185 '--no-expert[@]' \
186 '--no-secmem-warning[@]' \
187 '--require-secmem[@]' \
188 '--no-require-secmem[@]' \
189 '--no-permission-warning[@]' \
190 '-n[do not make any changes]' \
191 '--dry-run[do not make any changes]' \
192 '-i[prompt before overwriting]' \
193 '--interactive[prompt before overwriting]' \
194 '--default-sig-expire[@]' \
195 '--ask-sig-expire[@]' \
196 '--no-ask-sig-expire[@]' \
197 '--default-cert-expire[@]' \
198 '--ask-cert-expire[@]' \
199 '--no-ask-cert-expire[@]' \
200 '--default-cert-level[@]' \
201 '--min-cert-level[@]' \
202 '--ask-cert-level[@]' \
203 '--no-ask-cert-level[@]' \
204 '--only-sign-text-ids[@]' \
205 '--enable-large-rsa[@]' \
206 '--disable-large-rsa[@]' \
207 '--enable-dsa2[@]' \
208 '--disable-dsa2[@]' \
209 '--personal-cipher-preferences[@]' \
210 '--personal-digest-preferences[@]' \
211 '--personal-compress-preferences[@]' \
212 '--default-preference-list[@]' \
213 '--default-keyserver-url[@]' \
214 '--no-expensive-trust-checks[@]' \
215 '--allow-non-selfsigned-uid[@]' \
216 '--no-allow-non-selfsigned-uid[@]' \
217 '--allow-freeform-uid[@]' \
218 '--no-allow-freeform-uid[@]' \
219 '--preserve-permissions[@]' \
220 '--default-cert-check-level[@]' \
221 '--tofu-default-policy[@]' \
222 '--lock-once[@]' \
223 '--lock-multiple[@]' \
224 '--lock-never[@]' \
225 '--compress-algo[@]' \
226 '--compression-algo[@]' \
227 '--bzip2-decompress-lowmem[@]' \
228 '--completes-needed[@]' \
229 '--marginals-needed[@]' \
230 '--max-cert-depth[@]' \
231 '--trustdb-name[@]' \
232 '--auto-check-trustdb[@]' \
233 '--no-auto-check-trustdb[@]' \
234 '--force-ownertrust[@]' \
235 '--Input[Options controlling the input]' \
236 '--multifile[@]' \
237 '--input-size-hint[@]' \
238 '--utf8-strings[@]' \
239 '--no-utf8-strings[@]' \
240 '--set-filesize[@]' \
241 '--no-literal[@]' \
242 '--set-notation[@]' \
243 '--sig-notation[@]' \
244 '--cert-notation[@]' \
245 '--set-policy-url[@]' \
246 '--sig-policy-url[@]' \
247 '--cert-policy-url[@]' \
248 '--sig-keyserver-url[@]' \
249 '--Output[Options controlling the output]' \
250 '-a[create ascii armored output]' \
251 '--armor[create ascii armored output]' \
252 '--armour[@]' \
253 '--no-armor[@]' \
254 '--no-armour[@]' \
255 '--max-output[@]' \
256 '--comment[@]' \
257 '--default-comment[@]' \
258 '--no-comments[@]' \
259 '--emit-version[@]' \
260 '--no-emit-version[@]' \
261 '--no-version[@]' \
262 '--not-dash-escaped[@]' \
263 '--escape-from-lines[@]' \
264 '--no-escape-from-lines[@]' \
265 '--mimemode[@]' \
266 '--textmode[use canonical text mode]' \
267 '--no-textmode[@]' \
268 '--set-filename[@]' \
269 '--for-your-eyes-only[@]' \
270 '--no-for-your-eyes-only[@]' \
271 '--show-notation[@]' \
272 '--no-show-notation[@]' \
273 '--show-session-key[@]' \
274 '--use-embedded-filename[@]' \
275 '--no-use-embedded-filename[@]' \
276 '--unwrap[@]' \
277 '--mangle-dos-filenames[@]' \
278 '--no-mangle-dos-filenames[@]' \
279 '--no-symkey-cache[@]' \
280 '--skip-verify[@]' \
281 '--list-only[@]' \
282 '--compress-level[@]' \
283 '--bzip2-compress-level[@]' \
284 '--disable-signer-uid[@]' \
285 '--ImportExport[Options controlling key import and export]' \
286 '--no-auto-key-locate[@]' \
287 '--auto-key-import[import missing key from a signature]' \
288 '--no-auto-key-import[@]' \
289 '--auto-key-retrieve[@]' \
290 '--no-auto-key-retrieve[@]' \
291 '--include-key-block[include the public key in signatures]' \
292 '--no-include-key-block[@]' \
293 '--disable-dirmngr[disable all access to the dirmngr]' \
294 '--keyserver[@]' \
295 '--keyserver-options[@]' \
296 '--key-origin[@]' \
297 '--import-options[@]' \
298 '--import-filter[@]' \
299 '--export-options[@]' \
300 '--export-filter[@]' \
301 '--merge-only[@]' \
302 '--allow-secret-key-import[@]' \
303 '--Keylist[Options controlling key listings]' \
304 '--list-options[@]' \
305 '--show-photos[@]' \
306 '--no-show-photos[@]' \
307 '--show-policy-url[@]' \
308 '--no-show-policy-url[@]' \
309 '--with-colons[@]' \
310 '--with-tofu-info[@]' \
311 '--with-key-data[@]' \
312 '--with-sig-list[@]' \
313 '--with-sig-check[@]' \
314 '--with-fingerprint[@]' \
315 '--with-subkey-fingerprint[@]' \
316 '--with-subkey-fingerprints[@]' \
317 '--with-icao-spelling[@]' \
318 '--with-keygrip[@]' \
319 '--with-secret[@]' \
320 '--with-wkd-hash[@]' \
321 '--with-key-origin[@]' \
322 '--fast-list-mode[@]' \
323 '--fixed-list-mode[@]' \
324 '--legacy-list-mode[@]' \
325 '--print-pka-records[@]' \
326 '--print-dane-records[@]' \
327 '--keyid-format[@]' \
328 '--show-keyring[@]' \
329 '--hidden-recipient[@]' \
330 '--recipient-file[@]' \
331 '--hidden-recipient-file[@]' \
332 '--remote-user[@]' \
333 '--throw-keyids[@]' \
334 '--no-throw-keyids[@]' \
335 '--trusted-key[@]' \
336 '--sender[@]' \
337 '--try-secret-key[@]' \
338 '--try-all-secrets[@]' \
339 '--no-default-keyring[@]' \
340 '--no-keyring[@]' \
341 '--keyring[@]' \
342 '--primary-keyring[@]' \
343 '--secret-keyring[@]' \
344 '--skip-hidden-recipients[@]' \
345 '--no-skip-hidden-recipients[@]' \
346 '--override-session-key[@]' \
347 '--override-session-key-fd[@]' \
348 '--Security[Options controlling the security]' \
349 '--s2k-mode[@]' \
350 '--s2k-digest-algo[@]' \
351 '--s2k-cipher-algo[@]' \
352 '--s2k-count[@]' \
353 '--require-backsigs[@]' \
354 '--require-cross-certification[@]' \
355 '--no-require-backsigs[@]' \
356 '--no-require-cross-certification[@]' \
357 '--verify-options[@]' \
358 '--enable-special-filenames[@]' \
359 '--no-random-seed-file[@]' \
360 '--no-sig-cache[@]' \
361 '--ignore-time-conflict[@]' \
362 '--ignore-valid-from[@]' \
363 '--ignore-crc-error[@]' \
364 '--ignore-mdc-error[@]' \
365 '--disable-cipher-algo[@]' \
366 '--disable-pubkey-algo[@]' \
367 '--cipher-algo[@]' \
368 '--digest-algo[@]' \
369 '--cert-digest-algo[@]' \
370 '--override-compliance-check[@]' \
371 '--allow-weak-key-signatures[@]' \
372 '--allow-weak-digest-algos[@]' \
373 '--weak-digest[@]' \
374 '--allow-multisig-verification[@]' \
375 '--allow-multiple-messages[@]' \
376 '--no-allow-multiple-messages[@]' \
377 '--batch[@]' \
378 '--no-batch[@]' \
379 '--yes[@]' \
380 '--no[@]' \
381 '--status-fd[@]' \
382 '--status-file[@]' \
383 '--attribute-fd[@]' \
384 '--attribute-file[@]' \
385 '--command-fd[@]' \
386 '--command-file[@]' \
387 '--passphrase[@]' \
388 '--passphrase-fd[@]' \
389 '--passphrase-file[@]' \
390 '--passphrase-repeat[@]' \
391 '--pinentry-mode[@]' \
392 '--force-sign-key[@]' \
393 '--request-origin[@]' \
394 '--display[@]' \
395 '--ttyname[@]' \
396 '--ttytype[@]' \
397 '--lc-ctype[@]' \
398 '--lc-messages[@]' \
399 '--xauthority[@]' \
400 '--no-autostart[@]' \
401 '--forbid-gen-key[@]' \
402 '--require-compliance[@]' \
403 '--use-only-openpgp-card[@]' \
404 '--rfc2440-text[@]' \
405 '--no-rfc2440-text[@]' \
406 '--personal-cipher-prefs[@]' \
407 '--personal-digest-prefs[@]' \
408 '--personal-compress-prefs[@]' \
409 '--sign-with[@]' \
410 '--user[@]' \
411 '--use-agent[@]' \
412 '--no-use-agent[@]' \
413 '--gpg-agent-info[@]' \
414 '--reader-port[@]' \
415 '--ctapi-driver[@]' \
416 '--pcsc-driver[@]' \
417 '--disable-ccid[@]' \
418 '--honor-http-proxy[@]' \
419 '--tofu-db-format[@]' \
420 '--strict[@]' \
421 '--no-strict[@]' \
422 '--load-extension[@]' \
423 '--sk-comments[@]' \
424 '--no-sk-comments[@]' \
425 '--compress-keys[@]' \
426 '--compress-sigs[@]' \
427 '--force-v3-sigs[@]' \
428 '--no-force-v3-sigs[@]' \
429 '--force-v4-certs[@]' \
430 '--no-force-v4-certs[@]' \
431 '--no-mdc-warning[@]' \
432 '--force-mdc[@]' \
433 '--no-force-mdc[@]' \
434 '--disable-mdc[@]' \
435 '--no-disable-mdc[@]' \
436 '--x-sequoia-parcimonie[continuously update certificates]' \
437 '--x-sequoia-autostart-parcimonie[automatically start daemon to update certs]' \
438 '--x-sequoia-parcimonie-daemonize[@]' \
439 '--version[@]' \
440 '--warranty[@]' \
441 '--dump-option-table[@]' \
442 '--dump-options[@]' \
443 '-h[Print help]' \
444 '--help[Print help]' \
445 && ret=0
446 }
447
448 (( $+functions[_gpg-sq_commands] )) ||
449 _gpg-sq_commands() {
450 local commands; commands=()
451 _describe -t commands 'gpg-sq commands' commands "$@"
452 }
453
454 if [ "$funcstack[1]" = "_gpg-sq" ]; then
455 _gpg-sq "$@"
456 else
457 compdef _gpg-sq gpg-sq
458 fi