Debian Codegraph @

debian/completions/gpgv-sq.elv

raw
1
2 use builtin;
3 use str;
4
5 set edit:completion:arg-completer[gpgv-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 = 'gpgv-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 &'gpgv-sq'= {
21 cand --keyring 'take the keys from the keyring FILE'
22 cand -o 'write output to FILE'
23 cand --output 'write output to FILE'
24 cand --status-fd 'write status info to this FD'
25 cand --weak-digest 'reject signatures made with ALGO'
26 cand -v 'verbose'
27 cand --verbose 'verbose'
28 cand -q 'be somewhat more quiet'
29 cand --quiet 'be somewhat more quiet'
30 cand --ignore-time-conflict 'make timestamp conflicts only a warning'
31 cand -h 'Print help'
32 cand --help 'Print help'
33 }
34 ]
35 $completions[$command]
36 }