Debian Codegraph @

debian/completions/gpg-sq.elv

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