Debian Codegraph @

test/tests/tests.yaml

raw
1 main: {"args": ["--input-type=python", "--include-file=include.$shell"], "definition_file": "crazy-complete-test"}
2 when: {"args": ["--input-type=yaml"], "definition_file": "when.yaml"}
3 groups: {"args": ["--input-type=yaml"], "definition_file": "groups.yaml"}
4 combine: {"args": ["--input-type=yaml"], "definition_file": "combine.yaml"}
5 inherit-on: {"args": ["--input-type=yaml", "--inherit-options=True"], "definition_file": "inherit-options.yaml"}
6 inherit-off: {"args": ["--input-type=yaml", "--inherit-options=False"], "definition_file": "inherit-options.yaml"}
7 capture: {"args": ["--input-type=yaml", "--include-file=include.capture.$shell"], "definition_file": "capture.yaml"}
8 choices: {"args": ["--input-type=yaml"], "definition_file": "choices.yaml"}
9 command_arg: {"args": ["--input-type=yaml"], "definition_file": "command_arg.yaml"}
10 filedir: {"args": ["--input-type=yaml"], "definition_file": "filedir.yaml"}
11 wrapper: {"args": ["--input-type=yaml"], "definition_file": "wrapper.yaml"}
12 list: {"args": ["--input-type=yaml"], "definition_file": "list.yaml"}
13 key_value_list: {"args": ["--input-type=yaml", "--include-file=include.key_value_list.$shell"], "definition_file": "key_value_list.yaml"}
14 key_value_pair: {"args": ["--input-type=yaml", "--include-file=include.key_value_pair.$shell"], "definition_file": "key_value_pair.yaml"}
15 key_value_pair_exec: {"args": ["--input-type=yaml", "--include-file=include.key_value_pair_exec.$shell"], "definition_file": "key_value_pair_exec.yaml"}
16 key_value_list_exec: {"args": ["--input-type=yaml", "--include-file=include.key_value_list_exec.$shell"], "definition_file": "key_value_list_exec.yaml"}
17 complex: {"args": ["--input-type=yaml"], "definition_file": "complex.yaml"}
18 long_opt_arg_sep: {"args": ["--input-type=yaml"], "definition_file": "long_opt_arg_sep.yaml"}
19 option_arguments: {"args": ["--input-type=yaml"], "definition_file": "option_arguments.yaml"}
20 ---
21 number: 1
22 definition_file: "main"
23 description: "No arguments, check if all commands are listed"
24 send: "crazy-complete-test "
25 bash_expected: |
26 > crazy-complete-test
27 alias1 argparse-actions subcommand when
28 alias2 complete test
29 > crazy-complete-test
30 fish_expected: |
31 > crazy-complete-test
32 alias1 (For testing the completer)
33 alias2 (For testing the completer)
34 argparse-actions (argparse tool actions)
35 complete (Test complete commands)
36 subcommand (Test nested subcommands)
37 test (For testing the completer)
38 when (Test the "when"-feature)
39 zsh_expected: |
40 > crazy-complete-test
41 alias2 alias1 test -- For testing the completer
42 argparse-actions -- argparse tool actions
43 complete -- Test complete commands
44 subcommand -- Test nested subcommands
45 when -- Test the "when"-feature
46 ---
47 number: 2
48 definition_file: "main"
49 description: "Check if subcommand is completed"
50 send: "crazy-complete-test t"
51 bash_expected: |
52 > crazy-complete-test test
53 fish_expected: |
54 > crazy-complete-test test
55 zsh_expected: |
56 > crazy-complete-test test
57 ---
58 number: 3
59 definition_file: "main"
60 description: "Check if all options are listed"
61 send: "crazy-complete-test test -"
62 bash_expected: |
63 > crazy-complete-test test -
64 --arg= --special-chars-in-description=
65 --exclusive-1 -A
66 --exclusive-2 -F
67 --flag -O
68 --help -arg=
69 --optional= -flag
70 --repeatable-arg= -h
71 --repeatable-flag -optional=
72 > crazy-complete-test test -
73 fish_expected: |
74 > crazy-complete-test test -
75 -A -arg --arg (Option with arg)
76 -F -flag --flag (A option flag)
77 -h --help (show this help message and exit)
78 -O -optional --optional --optional= (Option with optional arg)
79 --exclusive-1
80 --exclusive-2
81 --repeatable-arg
82 --repeatable-flag
83 --special-chars-in-description (Here are some special chars: $"'\[]*`))
84 zsh_expected: |
85 > crazy-complete-test test -
86 --exclusive-1 --exclusive-2 --repeatable-arg --repeatable-flag
87 --arg
88 -arg -A -- Option with arg
89 --flag
90 -flag -F -- A option flag
91 --help -h -- show this help message and exit
92 --optional
93 -optional -O -- Option with optional arg
94 --special-chars-in-description -- Here are some special chars: $"'\[]*`)
95 ---
96 number: 4
97 definition_file: "main"
98 description: "Check long option with argument (with space)"
99 send: "crazy-complete-test test --arg "
100 bash_expected: |
101 > crazy-complete-test test --arg
102 1 2 3
103 > crazy-complete-test test --arg
104 fish_expected: |
105 > crazy-complete-test test --arg
106 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
107 zsh_expected: |
108 > crazy-complete-test test --arg
109 1 2 3
110 ---
111 number: 5
112 definition_file: "main"
113 description: "Check long option with argument (with equal sign)"
114 send: "crazy-complete-test test --arg="
115 bash_expected: |
116 > crazy-complete-test test --arg=
117 1 2 3
118 > crazy-complete-test test --arg=
119 fish_expected: |
120 > crazy-complete-test test --arg=
121 --arg=1 (Option with arg) --arg=3 (Option with arg)
122 --arg=2 (Option with arg)
123 zsh_expected: |
124 > crazy-complete-test test --arg=
125 1 2 3
126 ---
127 number: 6
128 definition_file: "main"
129 description: "Check short option with argument (without space)"
130 send: "crazy-complete-test test -A"
131 bash_expected: |
132 > crazy-complete-test test -A
133 -A1 -A2 -A3
134 > crazy-complete-test test -A
135 fish_expected: |
136 > crazy-complete-test test -A
137 -A1 (Option with arg) -A2 (Option with arg) -A3 (Option with arg)
138 zsh_expected: |
139 > crazy-complete-test test -A
140 1 2 3
141 ---
142 number: 7
143 definition_file: "main"
144 description: "Check short option with argument (with space)"
145 send: "crazy-complete-test test -A "
146 bash_expected: |
147 > crazy-complete-test test -A
148 1 2 3
149 > crazy-complete-test test -A
150 fish_expected: |
151 > crazy-complete-test test -A
152 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
153 zsh_expected: |
154 > crazy-complete-test test -A
155 1 2 3
156 ---
157 number: 8
158 definition_file: "main"
159 description: "Check old-style option with argument (with space)"
160 send: "crazy-complete-test test -arg "
161 bash_expected: |
162 > crazy-complete-test test -arg
163 1 2 3
164 > crazy-complete-test test -arg
165 fish_expected: |
166 > crazy-complete-test test -arg
167 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
168 zsh_expected: |
169 > crazy-complete-test test -arg
170 1 2 3
171 ---
172 number: 9
173 definition_file: "main"
174 description: "Check old-style option with argument (with equal sign)"
175 send: "crazy-complete-test test -arg="
176 bash_expected: |
177 > crazy-complete-test test -arg=
178 1 2 3
179 > crazy-complete-test test -arg=
180 fish_expected: |
181 > crazy-complete-test test -arg=
182 -arg=1 (Option with arg) -arg=2 (Option with arg) -arg=3 (Option with arg)
183 zsh_expected: |
184 > crazy-complete-test test -arg=
185 1 2 3
186 ---
187 number: 10
188 definition_file: "main"
189 description: "Check long option with optional argument"
190 send: "crazy-complete-test test --optional="
191 bash_expected: |
192 > crazy-complete-test test --optional=
193 1 2 3
194 > crazy-complete-test test --optional=
195 fish_expected: |
196 > crazy-complete-test test --optional=
197 …optional=1 (Option with optional arg) …optional=3 (Option with optional arg)
198 …optional=2 (Option with optional arg)
199 zsh_expected: |
200 > crazy-complete-test test --optional=
201 1 2 3
202 ---
203 number: 11
204 definition_file: "main"
205 description: "Check short option with optional argument"
206 comment: "FISH has a slightly wrong output"
207 send: "crazy-complete-test test -O"
208 bash_expected: |
209 > crazy-complete-test test -O
210 -O1 -O2 -O3
211 > crazy-complete-test test -O
212 fish_expected: |
213 > crazy-complete-test test -O
214 -O1 (Option with optional arg) -OA (Option with arg)
215 -O2 (Option with optional arg) -OF (A option flag)
216 -O3 (Option with optional arg) -Oh (show this help message and exit)
217 zsh_expected: |
218 > crazy-complete-test test -O
219 1 2 3
220 ---
221 number: 12
222 definition_file: "main"
223 description: "Check old-style option with optional argument"
224 send: "crazy-complete-test test -optional="
225 bash_expected: |
226 > crazy-complete-test test -optional=
227 1 2 3
228 > crazy-complete-test test -optional=
229 fish_expected: |
230 > crazy-complete-test test -optional=
231 …optional=1 (Option with optional arg) …optional=3 (Option with optional arg)
232 …optional=2 (Option with optional arg)
233 zsh_expected: |
234 > crazy-complete-test test -optional=
235 1 2 3
236 ---
237 number: 13
238 definition_file: "main"
239 description: "Check if mutually exclusive options work"
240 send: "crazy-complete-test test --exclusive-1 --exclusive"
241 bash_expected: |
242 > crazy-complete-test test --exclusive-1 --exclusive
243 fish_expected: |
244 > crazy-complete-test test --exclusive-1 --exclusive
245 zsh_expected: |
246 > crazy-complete-test test --exclusive-1 --exclusive
247 ---
248 number: 14
249 definition_file: "main"
250 description: "Check if repeatable options work"
251 send: "crazy-complete-test test --repeatable-flag --repeatable-"
252 bash_expected: |
253 > crazy-complete-test test --repeatable-flag --repeatable-
254 --repeatable-arg= --repeatable-flag
255 > crazy-complete-test test --repeatable-flag --repeatable-
256 fish_expected: |
257 > crazy-complete-test test --repeatable-flag --repeatable-
258 …peatable-arg …peatable-flag
259 zsh_expected: |
260 > crazy-complete-test test --repeatable-flag --repeatable-
261 --repeatable-arg --repeatable-flag
262 ---
263 number: 15
264 definition_file: "main"
265 description: "Check if final options work"
266 send: "crazy-complete-test test --help -"
267 bash_expected: |
268 > crazy-complete-test test --help -
269 fish_expected: |
270 > crazy-complete-test test --help -
271 zsh_expected: |
272 > crazy-complete-test test --help -
273 ---
274 number: 16
275 definition_file: "main"
276 description: "Check if hidden options work (short option) #1"
277 send: "crazy-complete-test test -H"
278 bash_expected: |
279 > crazy-complete-test test -H
280 -H1 -H2 -H3
281 > crazy-complete-test test -H
282 fish_expected: |
283 > crazy-complete-test test -H
284 -H1 -H2 -H3
285 zsh_expected: |
286 > crazy-complete-test test -H
287 1 2 3
288 ---
289 number: 17
290 definition_file: "main"
291 description: "Check if hidden options work (short option) #2"
292 send: "crazy-complete-test test -H "
293 bash_expected: |
294 > crazy-complete-test test -H
295 1 2 3
296 > crazy-complete-test test -H
297 fish_expected: |
298 > crazy-complete-test test -H
299 1 2 3
300 zsh_expected: |
301 > crazy-complete-test test -H
302 1 2 3
303 ---
304 number: 18
305 definition_file: "main"
306 description: "Check if hidden options work (short option, stacked) #1"
307 send: "crazy-complete-test test -FH"
308 bash_expected: |
309 > crazy-complete-test test -FH
310 -FH1 -FH2 -FH3
311 > crazy-complete-test test -FH
312 fish_expected: |
313 > crazy-complete-test test -FH
314 -FH1 -FH2 -FH3
315 zsh_expected: |
316 > crazy-complete-test test -FH
317 1 2 3
318 ---
319 number: 19
320 definition_file: "main"
321 description: "Check if hidden options work (short option, stacked) #2"
322 send: "crazy-complete-test test -FH "
323 bash_expected: |
324 > crazy-complete-test test -FH
325 1 2 3
326 > crazy-complete-test test -FH
327 fish_expected: |
328 > crazy-complete-test test -FH
329 1 2 3
330 zsh_expected: |
331 > crazy-complete-test test -FH
332 1 2 3
333 ---
334 number: 20
335 definition_file: "main"
336 description: "Check if hidden options work (long option) #1"
337 send: "crazy-complete-test test --hidden "
338 bash_expected: |
339 > crazy-complete-test test --hidden
340 1 2 3
341 > crazy-complete-test test --hidden
342 fish_expected: |
343 > crazy-complete-test test --hidden
344 1 2 3
345 zsh_expected: |
346 > crazy-complete-test test --hidden
347 1 2 3
348 ---
349 number: 21
350 definition_file: "main"
351 description: "Check if hidden options work (long option) #2"
352 send: "crazy-complete-test test --hidden="
353 bash_expected: |
354 > crazy-complete-test test --hidden=
355 1 2 3
356 > crazy-complete-test test --hidden=
357 fish_expected: |
358 > crazy-complete-test test --hidden=
359 --hidden=1 --hidden=2 --hidden=3
360 zsh_expected: |
361 > crazy-complete-test test --hidden=
362 1 2 3
363 ---
364 number: 22
365 definition_file: "main"
366 description: "Check if hidden options work (old option) #1"
367 send: "crazy-complete-test test -hidden "
368 bash_expected: |
369 > crazy-complete-test test -hidden
370 1 2 3
371 > crazy-complete-test test -hidden
372 fish_expected: |
373 > crazy-complete-test test -hidden
374 1 2 3
375 zsh_expected: |
376 > crazy-complete-test test -hidden
377 1 2 3
378 ---
379 number: 23
380 definition_file: "main"
381 description: "Check if hidden options work (old option) #2"
382 send: "crazy-complete-test test -hidden="
383 bash_expected: |
384 > crazy-complete-test test -hidden=
385 1 2 3
386 > crazy-complete-test test -hidden=
387 fish_expected: |
388 > crazy-complete-test test -hidden=
389 -hidden=1 -hidden=2 -hidden=3
390 zsh_expected: |
391 > crazy-complete-test test -hidden=
392 1 2 3
393 ---
394 number: 24
395 definition_file: "main"
396 description: "Check option stacking"
397 comment: "Does not work for BASH yet"
398 send: "crazy-complete-test test -F"
399 bash_expected: |
400 > crazy-complete-test test -F
401 fish_expected: |
402 > crazy-complete-test test -F
403 -FA (Option with arg) -FO (Option with optional arg)
404 -Fh (show this help message and exit)
405 zsh_expected: |
406 > crazy-complete-test test -F
407 -A -- Option with arg
408 -O -- Option with optional arg
409 -h -- show this help message and exit
410 ---
411 number: 25
412 definition_file: "main"
413 description: "Check option stacking (with required argument and no space)"
414 send: "crazy-complete-test test -FA"
415 bash_expected: |
416 > crazy-complete-test test -FA
417 -FA1 -FA2 -FA3
418 > crazy-complete-test test -FA
419 fish_expected: |
420 > crazy-complete-test test -FA
421 -FA1 (Option with arg) -FA2 (Option with arg) -FA3 (Option with arg)
422 zsh_expected: |
423 > crazy-complete-test test -FA
424 1 2 3
425 ---
426 number: 26
427 definition_file: "main"
428 description: "Check option stacking (with required argument and space)"
429 send: "crazy-complete-test test -FA "
430 bash_expected: |
431 > crazy-complete-test test -FA
432 1 2 3
433 > crazy-complete-test test -FA
434 fish_expected: |
435 > crazy-complete-test test -FA
436 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
437 zsh_expected: |
438 > crazy-complete-test test -FA
439 1 2 3
440 ---
441 number: 27
442 definition_file: "main"
443 description: "Check option stacking (with optional argument)"
444 comment: "FISH produces a bit of a wrong output"
445 send: "crazy-complete-test test -FO"
446 bash_expected: |
447 > crazy-complete-test test -FO
448 -FO1 -FO2 -FO3
449 > crazy-complete-test test -FO
450 fish_expected: |
451 > crazy-complete-test test -FO
452 -FO1 (Option with optional arg) -FOA (Option with arg)
453 -FO2 (Option with optional arg) -FOh (show this help message and exit)
454 -FO3 (Option with optional arg)
455 zsh_expected: |
456 > crazy-complete-test test -FO
457 1 2 3
458 ---
459 number: 28
460 definition_file: "main"
461 description: "when: Check if none of --if-* options are listed"
462 send: "crazy-complete-test when -"
463 bash_expected: |
464 > crazy-complete-test when -
465 --help --var= -V -optional=
466 --optional= -O -h -var=
467 > crazy-complete-test when -
468 fish_expected: |
469 > crazy-complete-test when -
470 -h --help (show this help message and exit)
471 -O -optional -V -var --optional --var (Conditional variable)
472 zsh_expected: |
473 > crazy-complete-test when -
474 --help -h -- show this help message and exit
475 --optional --var -var -O -V
476 -optional -- Conditional variable
477 ---
478 number: 29
479 definition_file: "main"
480 description: "when: Check if --if-var appears (with --var)"
481 send: "crazy-complete-test when --var value --if-"
482 bash_expected: |
483 > crazy-complete-test when --var value --if-var=
484 fish_expected: |
485 > crazy-complete-test when --var value --if-var
486 zsh_expected: |
487 > crazy-complete-test when --var value --if-var=
488 ---
489 number: 30
490 definition_file: "main"
491 description: "when: Check if --if-var appears (with -V)"
492 send: "crazy-complete-test when -V value --if-"
493 bash_expected: |
494 > crazy-complete-test when -V value --if-var=
495 fish_expected: |
496 > crazy-complete-test when -V value --if-var
497 zsh_expected: |
498 > crazy-complete-test when -V value --if-var=
499 ---
500 number: 31
501 definition_file: "main"
502 description: "when: Check if --if-var appears (with -var)"
503 send: "crazy-complete-test when -var value --if-"
504 bash_expected: |
505 > crazy-complete-test when -var value --if-var=
506 fish_expected: |
507 > crazy-complete-test when -var value --if-var
508 zsh_expected: |
509 > crazy-complete-test when -var value --if-var=
510 ---
511 number: 32
512 definition_file: "main"
513 description: "when: Check if --if-var and --if-var-is-foo appears (with -V foo)"
514 send: "crazy-complete-test when -V foo --if-"
515 bash_expected: |
516 > crazy-complete-test when -V foo --if-
517 --if-var-is-foo= --if-var=
518 > crazy-complete-test when -V foo --if-var
519 fish_expected: |
520 > crazy-complete-test when -V foo --if-var
521 --if-var (Only show option if --var is given)
522 --if-var-is-foo (Only show option if --var is foo or bar)
523 zsh_tabs: 2
524 zsh_expected: |
525 > crazy-complete-test when -V foo --if-var
526 --if-var -- Only show option if --var is given
527 --if-var-is-foo -- Only show option if --var is foo or bar
528 ---
529 number: 33
530 definition_file: "main"
531 description: "when: Check if --if-var and --if-var-is-foo appears (with -Vfoo)"
532 send: "crazy-complete-test when -Vfoo --if-"
533 bash_expected: |
534 > crazy-complete-test when -Vfoo --if-
535 --if-var-is-foo= --if-var=
536 > crazy-complete-test when -Vfoo --if-var
537 fish_expected: |
538 > crazy-complete-test when -Vfoo --if-var
539 --if-var (Only show option if --var is given)
540 --if-var-is-foo (Only show option if --var is foo or bar)
541 zsh_tabs: 2
542 zsh_expected: |
543 > crazy-complete-test when -Vfoo --if-var
544 --if-var -- Only show option if --var is given
545 --if-var-is-foo -- Only show option if --var is foo or bar
546 ---
547 number: 34
548 definition_file: "main"
549 description: "when: Check if --if-var and --if-var-is-foo appears (with --var foo)"
550 send: "crazy-complete-test when --var foo --if-"
551 bash_expected: |
552 > crazy-complete-test when --var foo --if-
553 --if-var-is-foo= --if-var=
554 > crazy-complete-test when --var foo --if-var
555 fish_expected: |
556 > crazy-complete-test when --var foo --if-var
557 --if-var (Only show option if --var is given)
558 --if-var-is-foo (Only show option if --var is foo or bar)
559 zsh_tabs: 2
560 zsh_expected: |
561 > crazy-complete-test when --var foo --if-var
562 --if-var -- Only show option if --var is given
563 --if-var-is-foo -- Only show option if --var is foo or bar
564 ---
565 number: 35
566 definition_file: "main"
567 description: "when: Check if --if-var and --if-var-is-foo appears (with --var=foo)"
568 send: "crazy-complete-test when --var=foo --if-"
569 bash_expected: |
570 > crazy-complete-test when --var=foo --if-
571 --if-var-is-foo= --if-var=
572 > crazy-complete-test when --var=foo --if-var
573 fish_expected: |
574 > crazy-complete-test when --var=foo --if-var
575 --if-var (Only show option if --var is given)
576 --if-var-is-foo (Only show option if --var is foo or bar)
577 zsh_tabs: 2
578 zsh_expected: |
579 > crazy-complete-test when --var=foo --if-var
580 --if-var -- Only show option if --var is given
581 --if-var-is-foo -- Only show option if --var is foo or bar
582 ---
583 number: 36
584 definition_file: "main"
585 description: "when: Check if --if-var and --if-var-is-foo appears (with -var foo)"
586 send: "crazy-complete-test when -var foo --if-"
587 bash_expected: |
588 > crazy-complete-test when -var foo --if-
589 --if-var-is-foo= --if-var=
590 > crazy-complete-test when -var foo --if-var
591 fish_expected: |
592 > crazy-complete-test when -var foo --if-var
593 --if-var (Only show option if --var is given)
594 --if-var-is-foo (Only show option if --var is foo or bar)
595 zsh_tabs: 2
596 zsh_expected: |
597 > crazy-complete-test when -var foo --if-var
598 --if-var -- Only show option if --var is given
599 --if-var-is-foo -- Only show option if --var is foo or bar
600 ---
601 number: 37
602 definition_file: "main"
603 description: "when: Check if --if-var and --if-var-is-foo appears (with -var=foo)"
604 send: "crazy-complete-test when -var=foo --if-"
605 bash_expected: |
606 > crazy-complete-test when -var=foo --if-
607 --if-var-is-foo= --if-var=
608 > crazy-complete-test when -var=foo --if-var
609 fish_expected: |
610 > crazy-complete-test when -var=foo --if-var
611 --if-var (Only show option if --var is given)
612 --if-var-is-foo (Only show option if --var is foo or bar)
613 zsh_tabs: 2
614 zsh_expected: |
615 > crazy-complete-test when -var=foo --if-var
616 --if-var -- Only show option if --var is given
617 --if-var-is-foo -- Only show option if --var is foo or bar
618 ---
619 number: 38
620 definition_file: "main"
621 description: "when: Check if --if-var and --if-var-is-foo appears (with --var bar)"
622 send: "crazy-complete-test when --var bar --if-"
623 bash_expected: |
624 > crazy-complete-test when --var bar --if-
625 --if-var-is-foo= --if-var=
626 > crazy-complete-test when --var bar --if-var
627 fish_expected: |
628 > crazy-complete-test when --var bar --if-var
629 --if-var (Only show option if --var is given)
630 --if-var-is-foo (Only show option if --var is foo or bar)
631 zsh_tabs: 2
632 zsh_expected: |
633 > crazy-complete-test when --var bar --if-var
634 --if-var -- Only show option if --var is given
635 --if-var-is-foo -- Only show option if --var is foo or bar
636 ---
637 number: 39
638 definition_file: "main"
639 description: "when: Check if --if-optional appears (with -O)"
640 send: "crazy-complete-test when -O --if-"
641 bash_expected: |
642 > crazy-complete-test when -O --if-optional=
643 fish_expected: |
644 > crazy-complete-test when -O --if-optional
645 zsh_expected: |
646 > crazy-complete-test when -O --if-optional=
647 ---
648 number: 40
649 definition_file: "main"
650 description: "when: Check if --if-optional appears (with --optional)"
651 send: "crazy-complete-test when --optional --if-"
652 bash_expected: |
653 > crazy-complete-test when --optional --if-optional=
654 fish_expected: |
655 > crazy-complete-test when --optional --if-optional
656 zsh_expected: |
657 > crazy-complete-test when --optional --if-optional=
658 ---
659 number: 41
660 definition_file: "main"
661 description: "when: Check if --if-optional appears (with -optional)"
662 send: "crazy-complete-test when -optional --if-"
663 bash_expected: |
664 > crazy-complete-test when -optional --if-optional=
665 fish_expected: |
666 > crazy-complete-test when -optional --if-optional
667 zsh_expected: |
668 > crazy-complete-test when -optional --if-optional=
669 ---
670 number: 42
671 definition_file: "main"
672 description: "when: Check if --if-optional and --if-optional-is-foo appears (with -Ofoo)"
673 send: "crazy-complete-test when -Ofoo --if-"
674 bash_expected: |
675 > crazy-complete-test when -Ofoo --if-
676 --if-optional-is-foo= --if-optional=
677 > crazy-complete-test when -Ofoo --if-optional
678 fish_expected: |
679 > crazy-complete-test when -Ofoo --if-optional
680 …-optional (Only show option if --optional is given)
681 …-optional-is-foo (Only show option if --optional is foo)
682 zsh_tabs: 2
683 zsh_expected: |
684 > crazy-complete-test when -Ofoo --if-optional
685 --if-optional -- Only show option if --optional is given
686 --if-optional-is-foo -- Only show option if --optional is foo
687 ---
688 number: 43
689 definition_file: "main"
690 description: "when: Check if --if-optional and --if-optional-is-foo appears (with --optional=foo)"
691 send: "crazy-complete-test when --optional=foo --if-"
692 bash_expected: |
693 > crazy-complete-test when --optional=foo --if-
694 --if-optional-is-foo= --if-optional=
695 > crazy-complete-test when --optional=foo --if-optional
696 fish_expected: |
697 > crazy-complete-test when --optional=foo --if-optional
698 …-optional (Only show option if --optional is given)
699 …-optional-is-foo (Only show option if --optional is foo)
700 zsh_tabs: 2
701 zsh_expected: |
702 > crazy-complete-test when --optional=foo --if-optional
703 --if-optional -- Only show option if --optional is given
704 --if-optional-is-foo -- Only show option if --optional is foo
705 ---
706 number: 44
707 definition_file: "main"
708 description: "when: Check if --if-optional and --if-optional-is-foo appears (with -optional=foo)"
709 send: "crazy-complete-test when -optional=foo --if-"
710 bash_expected: |
711 > crazy-complete-test when -optional=foo --if-
712 --if-optional-is-foo= --if-optional=
713 > crazy-complete-test when -optional=foo --if-optional
714 fish_expected: |
715 > crazy-complete-test when -optional=foo --if-optional
716 …-optional (Only show option if --optional is given)
717 …-optional-is-foo (Only show option if --optional is foo)
718 zsh_tabs: 2
719 zsh_expected: |
720 > crazy-complete-test when -optional=foo --if-optional
721 --if-optional -- Only show option if --optional is given
722 --if-optional-is-foo -- Only show option if --optional is foo
723 ---
724 number: 45
725 definition_file: "main"
726 description: "complete: Check --exec"
727 send: "crazy-complete-test complete --exec "
728 bash_expected: |
729 > crazy-complete-test complete --exec
730 Item\ 1 Item\ 2
731 > crazy-complete-test complete --exec Item\
732 fish_expected: |
733 > crazy-complete-test complete --exec Item\
734 Item 1 (Description 1) Item 2 (Description 2)
735 zsh_expected: |
736 > crazy-complete-test complete --exec Item\
737 ---
738 number: 46
739 definition_file: "main"
740 description: "complete: Check --exec-fast"
741 send: "crazy-complete-test complete --exec-fast "
742 bash_expected: |
743 > crazy-complete-test complete --exec-fast
744 Item_1 Item_2
745 > crazy-complete-test complete --exec-fast Item_
746 fish_expected: |
747 > crazy-complete-test complete --exec-fast Item_
748 Item_1 (Description 1) Item_2 (Description 2)
749 zsh_expected: |
750 > crazy-complete-test complete --exec-fast Item_
751 ---
752 number: 47
753 definition_file: "main"
754 description: "complete: Check --exec-internal"
755 send: "crazy-complete-test complete --exec-internal "
756 bash_expected: |
757 > crazy-complete-test complete --exec-internal
758 one three two
759 > crazy-complete-test complete --exec-internal
760 fish_expected: |
761 > crazy-complete-test complete --exec-internal
762 one (Execute internal code) two (Execute internal code)
763 three (Execute internal code)
764 zsh_expected: |
765 > crazy-complete-test complete --exec-internal
766 one three two
767 ---
768 number: 48
769 definition_file: "main"
770 description: "complete: Check --choices"
771 send: "crazy-complete-test complete --choices "
772 bash_expected: |
773 > crazy-complete-test complete --choices
774 1 2 foo:bar
775 > crazy-complete-test complete --choices
776 fish_expected: |
777 > crazy-complete-test complete --choices
778 1 (one) 2 (two) foo:bar (Description for foo:bar)
779 zsh_expected: |
780 > crazy-complete-test complete --choices
781 1 -- one
782 2 -- two
783 foo:bar -- Description for foo:bar
784 ---
785 number: 49
786 definition_file: "main"
787 description: "complete: Check --value-list #1"
788 send: "crazy-complete-test complete --value-list "
789 bash_expected: |
790 > crazy-complete-test complete --value-list
791 bar baz foo
792 > crazy-complete-test complete --value-list
793 fish_expected: |
794 > crazy-complete-test complete --value-list
795 bar (Complete a list) baz (Complete a list) foo (Complete a list)
796 zsh_expected: |
797 > crazy-complete-test complete --value-list
798 bar baz foo
799 ---
800 number: 50
801 definition_file: "main"
802 description: "complete: Check --value-list #2"
803 send: "crazy-complete-test complete --value-list f"
804 bash_expected: |
805 > crazy-complete-test complete --value-list foo
806 fish_expected: |
807 > crazy-complete-test complete --value-list foo
808 zsh_expected: |
809 > crazy-complete-test complete --value-list foo,
810 ---
811 number: 51
812 definition_file: "main"
813 description: "complete: Check --value-list #3"
814 send: "crazy-complete-test complete --value-list foo"
815 bash_expected: |
816 > crazy-complete-test complete --value-list foo,
817 fish_expected: |
818 > crazy-complete-test complete --value-list foo
819 zsh_expected: |
820 > crazy-complete-test complete --value-list foo,
821 ---
822 number: 52
823 definition_file: "main"
824 description: "complete: Check --value-list #4"
825 send: "crazy-complete-test complete --value-list foo,baz,"
826 bash_expected: |
827 > crazy-complete-test complete --value-list foo,baz,bar
828 fish_expected: |
829 > crazy-complete-test complete --value-list foo,baz,bar
830 zsh_expected: |
831 > crazy-complete-test complete --value-list foo,baz,bar,
832 ---
833 number: 53
834 definition_file: "main"
835 description: "complete: Check --value-list-2"
836 send: "crazy-complete-test complete --value-list-2 "
837 bash_expected: |
838 > crazy-complete-test complete --value-list-2
839 bar foo
840 > crazy-complete-test complete --value-list-2
841 fish_expected: |
842 > crazy-complete-test complete --value-list-2
843 bar (Some bar) foo (Some foo)
844 zsh_expected: |
845 > crazy-complete-test complete --value-list-2
846 bar -- Some bar
847 foo -- Some foo
848 ---
849 number: 54
850 definition_file: "main"
851 description: "complete: Check --range-1"
852 send: "crazy-complete-test complete --range-1 "
853 bash_expected: |
854 > crazy-complete-test complete --range-1
855 1 2 3 4 5 6 7 8 9
856 > crazy-complete-test complete --range-1
857 fish_expected: |
858 > crazy-complete-test complete --range-1
859 1 (Complete a range) 4 (Complete a range) 7 (Complete a range)
860 2 (Complete a range) 5 (Complete a range) 8 (Complete a range)
861 3 (Complete a range) 6 (Complete a range) 9 (Complete a range)
862 zsh_expected: |
863 > crazy-complete-test complete --range-1
864 1 2 3 4 5 6 7 8 9
865 ---
866 number: 55
867 definition_file: "main"
868 description: "complete: Check --range-2"
869 send: "crazy-complete-test complete --range-2 "
870 bash_expected: |
871 > crazy-complete-test complete --range-2
872 1 3 5 7 9
873 > crazy-complete-test complete --range-2
874 fish_expected: |
875 > crazy-complete-test complete --range-2
876 1 (Complete a range) 5 (Complete a range) 9 (Complete a range)
877 3 (Complete a range) 7 (Complete a range)
878 zsh_expected: |
879 > crazy-complete-test complete --range-2
880 1 3 5 7 9
881 ---
882 number: 56
883 definition_file: "main"
884 description: "Check if positionals are working (1st positional)"
885 send: "crazy-complete-test test "
886 bash_expected: |
887 > crazy-complete-test test
888 first1 first2 first3
889 > crazy-complete-test test first
890 fish_expected: |
891 > crazy-complete-test test first
892 first1 (First positional) first3 (First positional)
893 first2 (First positional)
894 zsh_expected: |
895 > crazy-complete-test test first
896 ---
897 number: 57
898 definition_file: "main"
899 description: "Check if positionals are working (2nd positional)"
900 send: "crazy-complete-test test first1 "
901 bash_expected: |
902 > crazy-complete-test test first1
903 second1 second2
904 > crazy-complete-test test first1 second
905 fish_expected: |
906 > crazy-complete-test test first1 second
907 second1 (Second positional) second2 (Second positional)
908 zsh_expected: |
909 > crazy-complete-test test first1 second
910 ---
911 number: 58
912 definition_file: "main"
913 description: "Check if positionals are working (3rd positional)"
914 send: "crazy-complete-test test first1 second1 "
915 bash_expected: |
916 > crazy-complete-test test first1 second1
917 repeated1 repeated2
918 > crazy-complete-test test first1 second1 repeated
919 fish_expected: |
920 > crazy-complete-test test first1 second1 repeated
921 repeated1 (Repeated positional) repeated2 (Repeated positional)
922 zsh_expected: |
923 > crazy-complete-test test first1 second1 repeated
924 ---
925 number: 59
926 definition_file: "main"
927 description: "Check if positionals are working (repeated positional)"
928 send: "crazy-complete-test test first1 second1 repeated1 "
929 bash_expected: |
930 > crazy-complete-test test first1 second1 repeated1
931 repeated1 repeated2
932 > crazy-complete-test test first1 second1 repeated1 repeated
933 fish_expected: |
934 > crazy-complete-test test first1 second1 repeated1 repeated
935 repeated1 (Repeated positional) repeated2 (Repeated positional)
936 zsh_expected: |
937 > crazy-complete-test test first1 second1 repeated1 repeated
938 ---
939 number: 60
940 definition_file: "main"
941 description: "Check if aliases are working (alias1)"
942 send: "crazy-complete-test alias1 --arg "
943 bash_expected: |
944 > crazy-complete-test alias1 --arg
945 1 2 3
946 > crazy-complete-test alias1 --arg
947 fish_expected: |
948 > crazy-complete-test alias1 --arg
949 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
950 zsh_expected: |
951 > crazy-complete-test alias1 --arg
952 1 2 3
953 ---
954 number: 61
955 definition_file: "main"
956 description: "Check if aliases are working (alias2)"
957 send: "crazy-complete-test alias2 --arg "
958 bash_expected: |
959 > crazy-complete-test alias2 --arg
960 1 2 3
961 > crazy-complete-test alias2 --arg
962 fish_expected: |
963 > crazy-complete-test alias2 --arg
964 1 (Option with arg) 2 (Option with arg) 3 (Option with arg)
965 zsh_expected: |
966 > crazy-complete-test alias2 --arg
967 1 2 3
968 ---
969 number: 62
970 definition_file: "when"
971 description: "Check multiple-when --complete with --files"
972 send: "crazy-complete-test multiple-when --files --complete "
973 bash_expected: |
974 > crazy-complete-test multiple-when --files --complete
975 file1 file2 file3
976 > crazy-complete-test multiple-when --files --complete file
977 fish_expected: |
978 > crazy-complete-test multiple-when --files --complete file
979 file1 file2 file3
980 zsh_expected: |
981 > crazy-complete-test multiple-when --files --complete file
982 ---
983 number: 63
984 definition_file: "when"
985 description: "Check multiple-when --complete with --directories"
986 send: "crazy-complete-test multiple-when --directories --complete "
987 bash_expected: |
988 > crazy-complete-test multiple-when --directories --complete
989 dir1 dir2 dir3
990 > crazy-complete-test multiple-when --directories --complete dir
991 fish_expected: |
992 > crazy-complete-test multiple-when --directories --complete dir
993 dir1 dir2 dir3
994 zsh_expected: |
995 > crazy-complete-test multiple-when --directories --complete dir
996 ---
997 number: 64
998 definition_file: "when"
999 description: "Check multiple-when positional with --files"
1000 send: "crazy-complete-test multiple-when --files "
1001 bash_expected: |
1002 > crazy-complete-test multiple-when --files
1003 file1 file2 file3
1004 > crazy-complete-test multiple-when --files file
1005 fish_expected: |
1006 > crazy-complete-test multiple-when --files file
1007 file1 file2 file3
1008 zsh_expected: |
1009 > crazy-complete-test multiple-when --files file
1010 ---
1011 number: 65
1012 definition_file: "when"
1013 description: "Check multiple-when positional with --directories"
1014 send: "crazy-complete-test multiple-when --directories "
1015 bash_expected: |
1016 > crazy-complete-test multiple-when --directories
1017 dir1 dir2 dir3
1018 > crazy-complete-test multiple-when --directories dir
1019 fish_expected: |
1020 > crazy-complete-test multiple-when --directories dir
1021 dir1 dir2 dir3
1022 zsh_expected: |
1023 > crazy-complete-test multiple-when --directories dir
1024 ---
1025 number: 66
1026 definition_file: "when"
1027 description: "Check positional_count (1)"
1028 send: "crazy-complete-test positionals --"
1029 bash_expected: |
1030 > crazy-complete-test positionals --
1031 fish_expected: |
1032 > crazy-complete-test positionals --
1033 zsh_expected: |
1034 > crazy-complete-test positionals --
1035 ---
1036 number: 67
1037 definition_file: "when"
1038 description: "Check positional_count (2)"
1039 send: "crazy-complete-test positionals arg --"
1040 bash_expected: |
1041 > crazy-complete-test positionals arg --if-positional-count
1042 fish_expected: |
1043 > crazy-complete-test positionals arg --if-positional-count
1044 zsh_expected: |
1045 > crazy-complete-test positionals arg --if-positional-count
1046 ---
1047 number: 68
1048 definition_file: "when"
1049 description: "Check positional_contains"
1050 send: "crazy-complete-test positionals foo --"
1051 bash_expected: |
1052 > crazy-complete-test positionals foo --
1053 --if-positional-contains --if-positional-count
1054 --if-positional-contains-nocase
1055 > crazy-complete-test positionals foo --if-positional-co
1056 fish_expected: |
1057 > crazy-complete-test positionals foo --if-positional-co
1058 …tional-contains …tional-contains-nocase …tional-count
1059 zsh_expected: |
1060 > crazy-complete-test positionals foo --if-positional-co
1061 ---
1062 number: 69
1063 definition_file: "groups"
1064 description: "Check -A"
1065 send: "crazy-complete-test -A -"
1066 bash_expected: |
1067 > crazy-complete-test -A -C
1068 fish_expected: |
1069 > crazy-complete-test -A -C
1070 zsh_expected: |
1071 > crazy-complete-test -A -C
1072 ---
1073 number: 70
1074 definition_file: "groups"
1075 description: "Check -B"
1076 send: "crazy-complete-test -B -"
1077 bash_expected: |
1078 > crazy-complete-test -B -
1079 fish_expected: |
1080 > crazy-complete-test -B -
1081 zsh_expected: |
1082 > crazy-complete-test -B -
1083 ---
1084 number: 71
1085 definition_file: "groups"
1086 description: "Check -C"
1087 send: "crazy-complete-test -C -"
1088 bash_expected: |
1089 > crazy-complete-test -C -A
1090 fish_expected: |
1091 > crazy-complete-test -C -A
1092 zsh_expected: |
1093 > crazy-complete-test -C -A
1094 ---
1095 number: 72
1096 definition_file: "combine"
1097 description: "Check combine"
1098 send: "crazy-complete-test -o "
1099 bash_expected: |
1100 > crazy-complete-test -o
1101 0 1 2 3 4 5 6 7
1102 > crazy-complete-test -o
1103 fish_expected: |
1104 > crazy-complete-test -o
1105 0 2 4 6 (six)
1106 1 3 5 7 (seven)
1107 zsh_expected: |
1108 > crazy-complete-test -o
1109 6 -- six
1110 7 -- seven
1111 2 3 0 1 4 5
1112 ---
1113 number: 73
1114 definition_file: "inherit-off"
1115 description: "Check if options are not inherited"
1116 send: "crazy-complete-test subcommand --"
1117 bash_expected: |
1118 > crazy-complete-test subcommand --sub-bar=
1119 fish_expected: |
1120 > crazy-complete-test subcommand --sub-bar
1121 zsh_expected: |
1122 > crazy-complete-test subcommand --sub-bar=
1123 ---
1124 number: 74
1125 definition_file: "inherit-off"
1126 description: "Check if options are not inherited (2)"
1127 send: "crazy-complete-test subcommand lastcommand --"
1128 bash_expected: |
1129 > crazy-complete-test subcommand lastcommand --last-option=
1130 fish_expected: |
1131 > crazy-complete-test subcommand lastcommand --last-option
1132 zsh_expected: |
1133 > crazy-complete-test subcommand lastcommand --last-option=
1134 ---
1135 number: 75
1136 definition_file: "inherit-on"
1137 description: "Check if options are inherited"
1138 send: "crazy-complete-test subcommand --"
1139 bash_expected: |
1140 > crazy-complete-test subcommand --
1141 --option= --sub-bar=
1142 > crazy-complete-test subcommand --
1143 fish_expected: |
1144 > crazy-complete-test subcommand --
1145 --option --sub-bar
1146 zsh_expected: |
1147 > crazy-complete-test subcommand --
1148 --option --sub-bar
1149 ---
1150 number: 76
1151 definition_file: "inherit-on"
1152 description: "Check if options are inherited (2)"
1153 send: "crazy-complete-test subcommand lastcommand --"
1154 bash_expected: |
1155 > crazy-complete-test subcommand lastcommand --
1156 --last-option= --option= --sub-bar=
1157 > crazy-complete-test subcommand lastcommand --
1158 fish_expected: |
1159 > crazy-complete-test subcommand lastcommand --
1160 --last-option --option --sub-bar
1161 zsh_expected: |
1162 > crazy-complete-test subcommand lastcommand --
1163 --last-option --option --sub-bar
1164 ---
1165 number: 77
1166 definition_file: "capture"
1167 description: "Check if capture works (1)"
1168 send: "crazy-complete-test --database mysql -t "
1169 bash_expected: |
1170 > crazy-complete-test --database mysql -t
1171 orders products users
1172 > crazy-complete-test --database mysql -t
1173 fish_expected: |
1174 > crazy-complete-test --database mysql -t
1175 orders products users
1176 zsh_expected: |
1177 > crazy-complete-test --database mysql -t
1178 orders products users
1179 ---
1180 number: 78
1181 definition_file: "capture"
1182 description: "Check if capture works (2)"
1183 send: "crazy-complete-test --database postgres -t "
1184 bash_expected: |
1185 > crazy-complete-test --database postgres -t
1186 customers invoices transactions
1187 > crazy-complete-test --database postgres -t
1188 fish_expected: |
1189 > crazy-complete-test --database postgres -t
1190 customers invoices transactions
1191 zsh_expected: |
1192 > crazy-complete-test --database postgres -t
1193 customers invoices transactions
1194 ---
1195 number: 79
1196 definition_file: "choices"
1197 description: "Check choices list (short)"
1198 send: "crazy-complete-test --choices-list-short "
1199 bash_expected: |
1200 > crazy-complete-test --choices-list-short
1201 a b c
1202 > crazy-complete-test --choices-list-short
1203 fish_expected: |
1204 > crazy-complete-test --choices-list-short
1205 a b c
1206 zsh_expected: |
1207 > crazy-complete-test --choices-list-short
1208 a b c
1209 ---
1210 number: 80
1211 definition_file: "choices"
1212 description: "Check choices list (short) (colon)"
1213 send: "crazy-complete-test --choices-list-short-colon "
1214 bash_expected: |
1215 > crazy-complete-test --choices-list-short-colon
1216 a:a b:b c:c
1217 > crazy-complete-test --choices-list-short-colon
1218 fish_expected: |
1219 > crazy-complete-test --choices-list-short-colon
1220 a:a b:b c:c
1221 zsh_expected: |
1222 > crazy-complete-test --choices-list-short-colon
1223 a:a b:b c:c
1224 ---
1225 number: 81
1226 definition_file: "choices"
1227 description: "Check choices list (long)"
1228 send: "crazy-complete-test --choices-list-long "
1229 bash_expected: |
1230 > crazy-complete-test --choices-list-long
1231 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1232 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
1233 ccccccccccccccccccccccccccccccccccccccccc
1234 ddddddddddddddddddddddddddddddddddddddddd
1235 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
1236 fffffffffffffffffffffffffffffffffffffffff
1237 > crazy-complete-test --choices-list-long
1238 fish_expected: |
1239 > crazy-complete-test --choices-list-long
1240 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1241 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
1242 ccccccccccccccccccccccccccccccccccccccccc
1243 ddddddddddddddddddddddddddddddddddddddddd
1244 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
1245 fffffffffffffffffffffffffffffffffffffffff
1246 zsh_expected: |
1247 > crazy-complete-test --choices-list-long
1248 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1249 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
1250 ccccccccccccccccccccccccccccccccccccccccc
1251 ddddddddddddddddddddddddddddddddddddddddd
1252 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
1253 fffffffffffffffffffffffffffffffffffffffff
1254 ---
1255 number: 82
1256 definition_file: "choices"
1257 description: "Check choices list (long) (colon)"
1258 send: "crazy-complete-test --choices-list-long-colon "
1259 bash_expected: |
1260 > crazy-complete-test --choices-list-long-colon
1261 a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a
1262 b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b
1263 c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c
1264 d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d
1265 e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e
1266 f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f
1267 > crazy-complete-test --choices-list-long-colon
1268 fish_expected: |
1269 > crazy-complete-test --choices-list-long-colon
1270 a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a
1271 b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b
1272 c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c
1273 d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d
1274 e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e
1275 f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f
1276 zsh_expected: |
1277 > crazy-complete-test --choices-list-long-colon
1278 a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a
1279 b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b
1280 c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c
1281 d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d
1282 e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e
1283 f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f
1284 ---
1285 number: 83
1286 definition_file: "choices"
1287 description: "Check choices dict (short)"
1288 send: "crazy-complete-test --choices-dict-short "
1289 bash_expected: |
1290 > crazy-complete-test --choices-dict-short
1291 a b
1292 > crazy-complete-test --choices-dict-short
1293 fish_expected: |
1294 > crazy-complete-test --choices-dict-short
1295 a (letter a) b (letter b)
1296 zsh_expected: |
1297 > crazy-complete-test --choices-dict-short
1298 a -- letter a
1299 b -- letter b
1300 ---
1301 number: 84
1302 definition_file: "choices"
1303 description: "Check choices dict (short) (colon)"
1304 send: "crazy-complete-test --choices-dict-short-colon "
1305 bash_expected: |
1306 > crazy-complete-test --choices-dict-short-colon
1307 a:a b:b
1308 > crazy-complete-test --choices-dict-short-colon
1309 fish_expected: |
1310 > crazy-complete-test --choices-dict-short-colon
1311 a:a (letter:a) b:b (letter:b)
1312 zsh_expected: |
1313 > crazy-complete-test --choices-dict-short-colon
1314 a:a -- letter:a
1315 b:b -- letter:b
1316 ---
1317 number: 85
1318 definition_file: "choices"
1319 description: "Check choices dict (long)"
1320 send: "crazy-complete-test --choices-dict-long "
1321 bash_expected: |
1322 > crazy-complete-test --choices-dict-long
1323 a b c d e f
1324 > crazy-complete-test --choices-dict-long
1325 fish_expected: |
1326 > crazy-complete-test --choices-dict-long
1327 a (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
1328 b (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb)
1329 c (ccccccccccccccccccccccccccccccccccccccccc)
1330 d (ddddddddddddddddddddddddddddddddddddddddd)
1331 e (eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee)
1332 f (fffffffffffffffffffffffffffffffffffffffff)
1333 zsh_expected: |
1334 > crazy-complete-test --choices-dict-long
1335 a -- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1336 b -- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
1337 c -- ccccccccccccccccccccccccccccccccccccccccc
1338 d -- ddddddddddddddddddddddddddddddddddddddddd
1339 e -- eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
1340 f -- fffffffffffffffffffffffffffffffffffffffff
1341 ---
1342 number: 86
1343 definition_file: "choices"
1344 description: "Check choices dict (long) (colon)"
1345 send: "crazy-complete-test --choices-dict-long-colon "
1346 bash_expected: |
1347 > crazy-complete-test --choices-dict-long-colon
1348 a:a b:b c:c d:d e:e f:f
1349 > crazy-complete-test --choices-dict-long-colon
1350 fish_expected: |
1351 > crazy-complete-test --choices-dict-long-colon
1352 a:a (a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a)
1353 b:b (b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b)
1354 c:c (c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c)
1355 d:d (d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d)
1356 e:e (e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e)
1357 f:f (f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f)
1358 zsh_expected: |
1359 > crazy-complete-test --choices-dict-long-colon
1360 a:a -- a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a:a
1361 b:b -- b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b:b
1362 c:c -- c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c:c
1363 d:d -- d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d:d
1364 e:e -- e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e:e
1365 f:f -- f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f:f
1366 ---
1367 number: 87
1368 definition_file: "main"
1369 description: "Check if end-of-options (--) terminates options"
1370 send: "crazy-complete-test -- -"
1371 bash_expected: |
1372 > crazy-complete-test -- -
1373 fish_expected: |
1374 > crazy-complete-test -- -
1375 argparse-actions (argparse tool actions) when (Test the "when"-feature)
1376 zsh_expected: |
1377 > crazy-complete-test -- -
1378 ---
1379 number: 88
1380 definition_file: "main"
1381 description: "Check if after end-of-options (--) positionals are completed"
1382 send: "crazy-complete-test -- a"
1383 bash_expected: |
1384 > crazy-complete-test -- a
1385 alias1 alias2 argparse-actions
1386 > crazy-complete-test -- a
1387 fish_expected: |
1388 > crazy-complete-test -- a
1389 alias1 (For testing the completer) argparse-actions (argparse tool actions)
1390 alias2 (For testing the completer)
1391 zsh_expected: |
1392 > crazy-complete-test -- a
1393 alias2 alias1 -- For testing the completer
1394 argparse-actions -- argparse tool actions
1395 ---
1396 number: 89
1397 definition_file: "main"
1398 description: "Check if after end-of-options (--) positionals are completed (2)"
1399 send: "crazy-complete-test -- test "
1400 bash_expected: |
1401 > crazy-complete-test -- test
1402 first1 first2 first3
1403 > crazy-complete-test -- test first
1404 fish_expected: |
1405 > crazy-complete-test -- test first
1406 first1 (First positional) first3 (First positional)
1407 first2 (First positional)
1408 zsh_expected: |
1409 > crazy-complete-test -- test first
1410 ---
1411 number: 90
1412 definition_file: "filedir"
1413 description: "Check --directory"
1414 send: "crazy-complete-test --directory "
1415 bash_expected: |
1416 > crazy-complete-test --directory
1417 bin directory
1418 > crazy-complete-test --directory
1419 fish_expected: |
1420 > crazy-complete-test --directory
1421 bin/ directory/
1422 zsh_expected: |
1423 > crazy-complete-test --directory
1424 bin/ directory/
1425 ---
1426 number: 91
1427 definition_file: "filedir"
1428 description: "Check --file"
1429 send: "crazy-complete-test --file "
1430 bash_expected: |
1431 > crazy-complete-test --file
1432 README.md file with spaces file4.txt.1 source.c++
1433 archive.tar.gz file0.txt image0.jpg
1434 bin file1.TXT image1.JPG
1435 directory file3.tXt image2.jPg
1436 > crazy-complete-test --file
1437 fish_expected: |
1438 > crazy-complete-test --file
1439 archive.tar.gz file with spaces file3.tXt image1.JPG source.c++
1440 bin/ file0.txt file4.txt.1 image2.jPg
1441 directory/ file1.TXT image0.jpg README.md
1442 zsh_expected: |
1443 > crazy-complete-test --file
1444 README.md file\ with\ spaces file4.txt.1 source.c++
1445 archive.tar.gz file0.txt image0.jpg
1446 bin/ file1.TXT image1.JPG
1447 directory/ file3.tXt image2.jPg
1448 ---
1449 number: 92
1450 definition_file: "filedir"
1451 description: "Check --file-txt-jpg"
1452 send: "crazy-complete-test --file-txt-jpg "
1453 bash_expected: |
1454 > crazy-complete-test --file-txt-jpg
1455 bin file0.txt file3.tXt image1.JPG
1456 directory file1.TXT image0.jpg image2.jPg
1457 > crazy-complete-test --file-txt-jpg
1458 fish_expected: |
1459 > crazy-complete-test --file-txt-jpg
1460 bin/ file0.txt file3.tXt image1.JPG
1461 directory/ file1.TXT image0.jpg image2.jPg
1462 zsh_expected: |
1463 > crazy-complete-test --file-txt-jpg
1464 bin/ file0.txt file3.tXt image1.JPG
1465 directory/ file1.TXT image0.jpg image2.jPg
1466 ---
1467 number: 93
1468 definition_file: "filedir"
1469 description: "Check --file-tar-gz"
1470 send: "crazy-complete-test --file-tar-gz "
1471 bash_expected: |
1472 > crazy-complete-test --file-tar-gz
1473 archive.tar.gz bin directory
1474 > crazy-complete-test --file-tar-gz
1475 fish_expected: |
1476 > crazy-complete-test --file-tar-gz
1477 archive.tar.gz bin/ directory/
1478 zsh_expected: |
1479 > crazy-complete-test --file-tar-gz
1480 archive.tar.gz bin/ directory/
1481 ---
1482 number: 94
1483 definition_file: "filedir"
1484 description: "Check --file-cpp"
1485 send: "crazy-complete-test --file-cpp "
1486 bash_expected: |
1487 > crazy-complete-test --file-cpp
1488 bin directory source.c++
1489 > crazy-complete-test --file-cpp
1490 fish_expected: |
1491 > crazy-complete-test --file-cpp
1492 bin/ directory/ source.c++
1493 zsh_expected: |
1494 > crazy-complete-test --file-cpp
1495 bin/ directory/ source.c++
1496 ---
1497 number: 95
1498 definition_file: "command_arg"
1499 description: "Check --command-path"
1500 send: "crazy-complete-test --command-path my_test_b"
1501 bash_expected: |
1502 > crazy-complete-test --command-path my_test_binary
1503 fish_expected: |
1504 > crazy-complete-test --command-path my_test_binary
1505 zsh_expected: |
1506 > crazy-complete-test --command-path my_test_binary
1507 ---
1508 number: 96
1509 definition_file: "command_arg"
1510 description: "Check --command-path-append"
1511 send: "crazy-complete-test --command-path-append my_test_b"
1512 bash_expected: |
1513 > crazy-complete-test --command-path-append my_test_binary
1514 fish_expected: |
1515 > crazy-complete-test --command-path-append my_test_binary
1516 zsh_expected: |
1517 > crazy-complete-test --command-path-append my_test_binary
1518 ---
1519 number: 97
1520 definition_file: "command_arg"
1521 description: "Check --command-path-prepend"
1522 send: "crazy-complete-test --command-path-prepend my_test_b"
1523 bash_expected: |
1524 > crazy-complete-test --command-path-prepend my_test_binary
1525 fish_expected: |
1526 > crazy-complete-test --command-path-prepend my_test_binary
1527 zsh_expected: |
1528 > crazy-complete-test --command-path-prepend my_test_binary
1529 ---
1530 number: 98
1531 definition_file: "command_arg"
1532 description: "Check --command-path-append-prepend"
1533 send: "crazy-complete-test --command-path-append-prepend my_test_b"
1534 bash_expected: |
1535 > crazy-complete-test --command-path-append-prepend my_test_binary
1536 fish_expected: |
1537 > crazy-complete-test --command-path-append-prepend my_test_binary
1538 zsh_expected: |
1539 > crazy-complete-test --command-path-append-prepend my_test_binary
1540 ---
1541 number: 99
1542 definition_file: "filedir"
1543 description: "Check --file-txt-fuzzy"
1544 send: "crazy-complete-test --file-txt-fuzzy "
1545 bash_expected: |
1546 > crazy-complete-test --file-txt-fuzzy
1547 bin directory file0.txt file1.TXT file3.tXt file4.txt.1
1548 > crazy-complete-test --file-txt-fuzzy
1549 fish_expected: |
1550 > crazy-complete-test --file-txt-fuzzy
1551 bin/ directory/ file0.txt file1.TXT file3.tXt file4.txt.1
1552 zsh_expected: |
1553 > crazy-complete-test --file-txt-fuzzy
1554 bin/ directory/ file0.txt file1.TXT file3.tXt file4.txt.1
1555 ---
1556 number: 100
1557 definition_file: "list"
1558 description: "Check --list (1)"
1559 send: "crazy-complete-test --list "
1560 bash_expected: |
1561 > crazy-complete-test --list
1562 one three two
1563 > crazy-complete-test --list
1564 fish_expected: |
1565 > crazy-complete-test --list
1566 one three two
1567 zsh_expected: |
1568 > crazy-complete-test --list
1569 one three two
1570 ---
1571 number: 101
1572 definition_file: "list"
1573 description: "Check --list (2)"
1574 send: "crazy-complete-test --list one,"
1575 bash_expected: |
1576 > crazy-complete-test --list one,
1577 one,three one,two
1578 > crazy-complete-test --list one,t
1579 fish_expected: |
1580 > crazy-complete-test --list one,t
1581 one,three one,two
1582 zsh_expected: |
1583 > crazy-complete-test --list one,
1584 one three two
1585 ---
1586 number: 102
1587 definition_file: "list"
1588 description: "Check --colon-list (1)"
1589 send: "crazy-complete-test --colon-list "
1590 bash_expected: |
1591 > crazy-complete-test --colon-list
1592 one three two
1593 > crazy-complete-test --colon-list
1594 fish_expected: |
1595 > crazy-complete-test --colon-list
1596 one three two
1597 zsh_expected: |
1598 > crazy-complete-test --colon-list
1599 one three two
1600 ---
1601 number: 103
1602 definition_file: "list"
1603 description: "Check --colon-list (2)"
1604 send: "crazy-complete-test --colon-list one:"
1605 bash_expected: |
1606 > crazy-complete-test --colon-list one:
1607 three two
1608 > crazy-complete-test --colon-list one:t
1609 fish_expected: |
1610 > crazy-complete-test --colon-list one:t
1611 one:three one:two
1612 zsh_expected: |
1613 > crazy-complete-test --colon-list one:
1614 one three two
1615 ---
1616 number: 104
1617 definition_file: "list"
1618 description: "Check --combined-list"
1619 send: "crazy-complete-test --combined-list "
1620 bash_expected: |
1621 > crazy-complete-test --combined-list
1622 1 2 3 one three two
1623 > crazy-complete-test --combined-list
1624 fish_expected: |
1625 > crazy-complete-test --combined-list
1626 1 2 3 one three two
1627 zsh_expected: |
1628 > crazy-complete-test --combined-list
1629 1 2 3 one three two
1630 ---
1631 number: 105
1632 definition_file: "list"
1633 description: "Check --duplicate-list (1)"
1634 send: "crazy-complete-test --duplicate-list "
1635 bash_expected: |
1636 > crazy-complete-test --duplicate-list
1637 one three two
1638 > crazy-complete-test --duplicate-list
1639 fish_expected: |
1640 > crazy-complete-test --duplicate-list
1641 one three two
1642 zsh_expected: |
1643 > crazy-complete-test --duplicate-list
1644 one three two
1645 ---
1646 number: 106
1647 definition_file: "list"
1648 description: "Check --duplicate-list (2)"
1649 send: "crazy-complete-test --duplicate-list one,"
1650 bash_expected: |
1651 > crazy-complete-test --duplicate-list one,
1652 one,one one,three one,two
1653 > crazy-complete-test --duplicate-list one,
1654 fish_expected: |
1655 > crazy-complete-test --duplicate-list one,
1656 one,one one,three one,two
1657 zsh_expected: |
1658 > crazy-complete-test --duplicate-list one,
1659 one three two
1660 ---
1661 number: 107
1662 definition_file: "main"
1663 description: "complete: Check --value-list-dup"
1664 send: "crazy-complete-test complete --value-list-dup foo,"
1665 bash_expected: |
1666 > crazy-complete-test complete --value-list-dup foo,
1667 foo,bar foo,baz foo,foo
1668 > crazy-complete-test complete --value-list-dup foo,
1669 fish_expected: |
1670 > crazy-complete-test complete --value-list-dup foo,
1671 foo,bar (Complete a list (with duplicates))
1672 foo,baz (Complete a list (with duplicates))
1673 foo,foo (Complete a list (with duplicates))
1674 zsh_expected: |
1675 > crazy-complete-test complete --value-list-dup foo,
1676 bar baz foo
1677 ---
1678 number: 108
1679 definition_file: "main"
1680 description: "complete: Check --integer"
1681 send: "crazy-complete-test complete --integer 1"
1682 bash_expected: |
1683 > crazy-complete-test complete --integer 1
1684 1 1h 1m 1s
1685 > crazy-complete-test complete --integer 1
1686 fish_expected: |
1687 > crazy-complete-test complete --integer 1
1688 1h (hours) 1m (minutes) 1s (seconds)
1689 zsh_expected: |
1690 > crazy-complete-test complete --integer 1
1691 s -- seconds m -- minutes h -- hours
1692 ---
1693 number: 109
1694 definition_file: "main"
1695 description: "complete: Check --float"
1696 send: "crazy-complete-test complete --float 1"
1697 bash_expected: |
1698 > crazy-complete-test complete --float 1
1699 1 1h 1m 1s
1700 > crazy-complete-test complete --float 1
1701 fish_expected: |
1702 > crazy-complete-test complete --float 1
1703 1h (hours) 1m (minutes) 1s (seconds)
1704 zsh_expected: |
1705 > crazy-complete-test complete --float 1
1706 s -- seconds m -- minutes h -- hours
1707 ---
1708 number: 110
1709 definition_file: "main"
1710 description: "complete: Check --float (2)"
1711 send: "crazy-complete-test complete --float 1.0"
1712 bash_expected: |
1713 > crazy-complete-test complete --float 1.0
1714 1.0 1.0h 1.0m 1.0s
1715 > crazy-complete-test complete --float 1.0
1716 fish_expected: |
1717 > crazy-complete-test complete --float 1.0
1718 1.0h (hours) 1.0m (minutes) 1.0s (seconds)
1719 zsh_expected: |
1720 > crazy-complete-test complete --float 1.0
1721 s -- seconds m -- minutes h -- hours
1722 ---
1723 number: 111
1724 definition_file: "key_value_list"
1725 description: "key_value_list: Check -o"
1726 send: "crazy-complete-test -o "
1727 bash_expected: |
1728 > crazy-complete-test -o
1729 animal exclusive nocomp proc with_sep
1730 async file number repeatable
1731 > crazy-complete-test -o
1732 fish_expected: |
1733 > crazy-complete-test -o
1734 animal= (select an animal) number= (select a number)
1735 async (set async mode) proc= (select a process)
1736 exclusive (deactivate some options) repeatable (repeatable option)
1737 file= with_sep= (values containing sep)
1738 nocomp= (no completer)
1739 zsh_expected: |
1740 > crazy-complete-test -o
1741 animal -- select an animal
1742 async -- set async mode
1743 exclusive -- deactivate some options
1744 nocomp -- no completer
1745 number -- select a number
1746 proc -- select a process
1747 repeatable -- repeatable option
1748 with_sep -- values containing sep
1749 file
1750 ---
1751 number: 112
1752 definition_file: "key_value_list"
1753 description: "key_value_list: Check -o a"
1754 send: "crazy-complete-test -o a"
1755 bash_expected: |
1756 > crazy-complete-test -o a
1757 animal async
1758 > crazy-complete-test -o a
1759 fish_expected: |
1760 > crazy-complete-test -o a
1761 animal= (select an animal) async (set async mode)
1762 zsh_expected: |
1763 > crazy-complete-test -o a
1764 animal -- select an animal
1765 async -- set async mode
1766 ---
1767 number: 113
1768 definition_file: "key_value_list"
1769 description: "key_value_list: Check -o an"
1770 send: "crazy-complete-test -o an"
1771 bash_expected: |
1772 > crazy-complete-test -o animal
1773 fish_expected: |
1774 > crazy-complete-test -o animal=
1775 zsh_expected: |
1776 > crazy-complete-test -o animal=
1777 ---
1778 number: 114
1779 definition_file: "key_value_list"
1780 description: "key_value_list: Check -o animal="
1781 send: "crazy-complete-test -o animal="
1782 bash_expected: |
1783 > crazy-complete-test -o animal=
1784 cat dog horse
1785 > crazy-complete-test -o animal=
1786 fish_expected: |
1787 > crazy-complete-test -o animal=
1788 animal=cat animal=dog animal=horse
1789 zsh_expected: |
1790 > crazy-complete-test -o animal=
1791 cat dog horse
1792 ---
1793 number: 115
1794 definition_file: "key_value_list"
1795 description: "key_value_list: Check -o animal,"
1796 send: "crazy-complete-test -o animal,"
1797 bash_expected: |
1798 > crazy-complete-test -o animal,
1799 animal,async animal,file animal,number animal,repeatable
1800 animal,exclusive animal,nocomp animal,proc animal,with_sep
1801 > crazy-complete-test -o animal,
1802 fish_expected: |
1803 > crazy-complete-test -o animal,
1804 animal,async (set async mode)
1805 animal,exclusive (deactivate some options)
1806 animal,file=
1807 animal,nocomp= (no completer)
1808 animal,number= (select a number)
1809 animal,proc= (select a process)
1810 animal,repeatable (repeatable option)
1811 animal,with_sep= (values containing sep)
1812 zsh_expected: |
1813 > crazy-complete-test -o animal,
1814 async -- set async mode
1815 exclusive -- deactivate some options
1816 nocomp -- no completer
1817 number -- select a number
1818 proc -- select a process
1819 repeatable -- repeatable option
1820 with_sep -- values containing sep
1821 file
1822 ---
1823 number: 116
1824 definition_file: "key_value_list"
1825 description: "key_value_list: Check -o animal,n"
1826 send: "crazy-complete-test -o animal,n"
1827 bash_expected: |
1828 > crazy-complete-test -o animal,n
1829 animal,nocomp animal,number
1830 > crazy-complete-test -o animal,n
1831 fish_expected: |
1832 > crazy-complete-test -o animal,n
1833 animal,nocomp= (no completer) animal,number= (select a number)
1834 zsh_expected: |
1835 > crazy-complete-test -o animal,n
1836 nocomp -- no completer
1837 number -- select a number
1838 ---
1839 number: 117
1840 definition_file: "key_value_list"
1841 description: "key_value_list: Check -o number="
1842 send: "crazy-complete-test -o number="
1843 bash_expected: |
1844 > crazy-complete-test -o number=
1845 0 1 2
1846 > crazy-complete-test -o number=
1847 fish_expected: |
1848 > crazy-complete-test -o number=
1849 number=0 (zero) number=1 (one) number=2 (two)
1850 zsh_expected: |
1851 > crazy-complete-test -o number=
1852 0 -- zero
1853 1 -- one
1854 2 -- two
1855 ---
1856 number: 118
1857 definition_file: "key_value_list"
1858 description: "key_value_list: Check -o 'number="
1859 send: "crazy-complete-test -o 'number="
1860 bash_expected: |
1861 > crazy-complete-test -o 'number=
1862 number=0 number=1 number=2
1863 > crazy-complete-test -o 'number=
1864 fish_expected: |
1865 > crazy-complete-test -o 'number=
1866 'number=0 (zero) 'number=1 (one) 'number=2 (two)
1867 zsh_expected: |
1868 > crazy-complete-test -o 'number=
1869 0 -- zero
1870 1 -- one
1871 2 -- two
1872 ---
1873 number: 119
1874 definition_file: "key_value_list"
1875 description: "key_value_list: Check -o \"number="
1876 send: "crazy-complete-test -o \"number="
1877 bash_expected: |
1878 > crazy-complete-test -o "number=
1879 number=0 number=1 number=2
1880 > crazy-complete-test -o "number=
1881 fish_expected: |
1882 > crazy-complete-test -o "number=
1883 "number=0 (zero) "number=1 (one) "number=2 (two)
1884 zsh_expected: |
1885 > crazy-complete-test -o "number=
1886 0 -- zero
1887 1 -- one
1888 2 -- two
1889 ---
1890 number: 120
1891 definition_file: "key_value_list"
1892 description: "key_value_list: Check -o file=f"
1893 send: "crazy-complete-test -o file=f"
1894 bash_expected: |
1895 > crazy-complete-test -o file=f
1896 file with spaces file1.TXT file4.txt.1
1897 file0.txt file3.tXt
1898 > crazy-complete-test -o file=file
1899 fish_expected: |
1900 > crazy-complete-test -o file=file
1901 file=file with spaces file=file1.TXT file=file4.txt.1
1902 file=file0.txt file=file3.tXt
1903 zsh_expected: |
1904 > crazy-complete-test -o file=file
1905 ---
1906 number: 121
1907 definition_file: "key_value_list"
1908 description: "key_value_list: Check -o with_sep=value="
1909 comment: "Does not work for Bash yet"
1910 send: "crazy-complete-test -o with_sep=value="
1911 bash_expected: |
1912 > crazy-complete-test -o with_sep=value=value=foo
1913 fish_expected: |
1914 > crazy-complete-test -o with_sep=value=foo
1915 zsh_expected: |
1916 > crazy-complete-test -o with_sep=value=foo,
1917 ---
1918 number: 122
1919 definition_file: "key_value_list"
1920 description: "key_value_list: Check -o exclusive,"
1921 send: "crazy-complete-test -o exclusive,"
1922 bash_expected: |
1923 > crazy-complete-test -o exclusive,
1924 exclusive,file exclusive,repeatable
1925 exclusive,proc exclusive,with_sep
1926 > crazy-complete-test -o exclusive,
1927 fish_expected: |
1928 > crazy-complete-test -o exclusive,
1929 …xclusive,file=
1930 …xclusive,proc= (select a process)
1931 …xclusive,repeatable (repeatable option)
1932 …xclusive,with_sep= (values containing sep)
1933 zsh_expected: |
1934 > crazy-complete-test -o exclusive,
1935 proc -- select a process
1936 repeatable -- repeatable option
1937 with_sep -- values containing sep
1938 file
1939 ---
1940 number: 123
1941 definition_file: "key_value_list"
1942 description: "key_value_list: Check -o repeatable,"
1943 send: "crazy-complete-test -o repeatable,"
1944 bash_expected: |
1945 > crazy-complete-test -o repeatable,
1946 repeatable,animal repeatable,file repeatable,proc
1947 repeatable,async repeatable,nocomp repeatable,repeatable
1948 repeatable,exclusive repeatable,number repeatable,with_sep
1949 > crazy-complete-test -o repeatable,
1950 fish_expected: |
1951 > crazy-complete-test -o repeatable,
1952 …peatable,animal= (select an animal)
1953 …peatable,async (set async mode)
1954 …peatable,exclusive (deactivate some options)
1955 …peatable,file=
1956 …peatable,nocomp= (no completer)
1957 …peatable,number= (select a number)
1958 …peatable,proc= (select a process)
1959 …peatable,repeatable (repeatable option)
1960 …peatable,with_sep= (values containing sep)
1961 zsh_expected: |
1962 > crazy-complete-test -o repeatable,
1963 animal -- select an animal
1964 async -- set async mode
1965 exclusive -- deactivate some options
1966 nocomp -- no completer
1967 number -- select a number
1968 proc -- select a process
1969 repeatable -- repeatable option
1970 with_sep -- values containing sep
1971 file
1972 ---
1973 number: 124
1974 definition_file: "key_value_list"
1975 description: "key_value_list: Check --condition "
1976 send: "crazy-complete-test --condition "
1977 bash_expected: |
1978 > crazy-complete-test --condition
1979 animal exclusive nocomp proc with_sep
1980 async file number repeatable
1981 > crazy-complete-test --condition
1982 fish_expected: |
1983 > crazy-complete-test --condition
1984 animal= (select an animal) number= (select a number)
1985 async (set async mode) proc= (select a process)
1986 exclusive (deactivate some options) repeatable (repeatable option)
1987 file= with_sep= (values containing sep)
1988 nocomp= (no completer)
1989 zsh_expected: |
1990 > crazy-complete-test --condition
1991 animal -- select an animal
1992 async -- set async mode
1993 exclusive -- deactivate some options
1994 nocomp -- no completer
1995 number -- select a number
1996 proc -- select a process
1997 repeatable -- repeatable option
1998 with_sep -- values containing sep
1999 file
2000 ---
2001 number: 125
2002 definition_file: "complex"
2003 description: "complex: Check no arguments"
2004 send: "crazy-complete-test "
2005 bash_expected: |
2006 > crazy-complete-test
2007 log: output:
2008 > crazy-complete-test
2009 fish_expected: |
2010 > crazy-complete-test
2011 log: output:
2012 zsh_expected: |
2013 > crazy-complete-test
2014 log: output:
2015 ---
2016 number: 126
2017 definition_file: "complex"
2018 description: "complex: Check l"
2019 send: "crazy-complete-test l"
2020 bash_expected: |
2021 > crazy-complete-test log:
2022 fish_expected: |
2023 > crazy-complete-test log:
2024 zsh_expected: |
2025 > crazy-complete-test log:
2026 ---
2027 number: 127
2028 definition_file: "complex"
2029 description: "complex: Check log:"
2030 send: "crazy-complete-test log:"
2031 bash_expected: |
2032 > crazy-complete-test log:
2033 format level
2034 > crazy-complete-test log:
2035 fish_expected: |
2036 > crazy-complete-test log:
2037 log:format= (specify output format) log:level= (specify log level)
2038 zsh_expected: |
2039 > crazy-complete-test log:
2040 format -- specify output format
2041 level -- specify log level
2042 ---
2043 number: 128
2044 definition_file: "complex"
2045 description: "complex: Check log:l"
2046 send: "crazy-complete-test log:l"
2047 bash_expected: |
2048 > crazy-complete-test log:level
2049 fish_expected: |
2050 > crazy-complete-test log:level=
2051 zsh_expected: |
2052 > crazy-complete-test log:level=
2053 ---
2054 number: 129
2055 definition_file: "complex"
2056 description: "complex: Check log:level="
2057 send: "crazy-complete-test log:level="
2058 bash_expected: |
2059 > crazy-complete-test log:level=
2060 debug error info warn
2061 > crazy-complete-test log:level=
2062 fish_expected: |
2063 > crazy-complete-test log:level=
2064 …og:level=debug …og:level=error …og:level=info …og:level=warn
2065 zsh_expected: |
2066 > crazy-complete-test log:level=
2067 debug error info warn
2068 ---
2069 number: 130
2070 definition_file: "complex"
2071 description: "complex: Check log:level=w"
2072 send: "crazy-complete-test log:level=w"
2073 bash_expected: |
2074 > crazy-complete-test log:level=warn
2075 fish_expected: |
2076 > crazy-complete-test log:level=warn
2077 zsh_expected: |
2078 > crazy-complete-test log:level=warn,
2079 ---
2080 number: 131
2081 definition_file: "complex"
2082 description: "complex: Check log:level=warn o"
2083 send: "crazy-complete-test log:level=warn o"
2084 bash_expected: |
2085 > crazy-complete-test log:level=warn output:
2086 fish_expected: |
2087 > crazy-complete-test log:level=warn output:
2088 zsh_expected: |
2089 > crazy-complete-test log:level=warn output:
2090 ---
2091 number: 132
2092 definition_file: "choices"
2093 description: "Check if nosort is respected (long option)"
2094 send: "crazy-complete-test --choices-no-sort "
2095 require_order: true
2096 bash_expected: |
2097 > crazy-complete-test --choices-no-sort
2098 3 1 2
2099 > crazy-complete-test --choices-no-sort
2100 fish_expected: |
2101 > crazy-complete-test --choices-no-sort
2102 3 1 2
2103 zsh_expected: |
2104 > crazy-complete-test --choices-no-sort
2105 3 1 2
2106 ---
2107 number: 133
2108 definition_file: "choices"
2109 description: "Check if nosort is respected (old option)"
2110 send: "crazy-complete-test -choices-no-sort "
2111 require_order: true
2112 bash_expected: |
2113 > crazy-complete-test -choices-no-sort
2114 3 1 2
2115 > crazy-complete-test -choices-no-sort
2116 fish_expected: |
2117 > crazy-complete-test -choices-no-sort
2118 3 1 2
2119 zsh_expected: |
2120 > crazy-complete-test -choices-no-sort
2121 3 1 2
2122 ---
2123 number: 134
2124 definition_file: "choices"
2125 description: "Check if nosort is respected (short option)"
2126 send: "crazy-complete-test -n "
2127 require_order: true
2128 bash_expected: |
2129 > crazy-complete-test -n
2130 3 1 2
2131 > crazy-complete-test -n
2132 fish_expected: |
2133 > crazy-complete-test -n
2134 3 1 2
2135 zsh_expected: |
2136 > crazy-complete-test -n
2137 3 1 2
2138 ---
2139 number: 135
2140 definition_file: "choices"
2141 description: "Check if nosort is respected (positional)"
2142 send: "crazy-complete-test "
2143 require_order: true
2144 bash_expected: |
2145 > crazy-complete-test
2146 3 1 2
2147 > crazy-complete-test
2148 fish_expected: |
2149 > crazy-complete-test
2150 3 1 2
2151 zsh_expected: |
2152 > crazy-complete-test
2153 3 1 2
2154 ---
2155 number: 136
2156 definition_file: "filedir"
2157 description: "Check --directory-relative"
2158 send: "crazy-complete-test --directory-relative "
2159 bash_expected: |
2160 > crazy-complete-test --directory-relative
2161 bin directory
2162 > crazy-complete-test --directory-relative
2163 fish_expected: |
2164 > crazy-complete-test --directory-relative
2165 bin/ directory/
2166 zsh_expected: |
2167 > crazy-complete-test --directory-relative
2168 bin/ directory/
2169 ---
2170 number: 137
2171 definition_file: "filedir"
2172 description: "Check --file-relative"
2173 send: "crazy-complete-test --file-relative "
2174 bash_expected: |
2175 > crazy-complete-test --file-relative
2176 README.md file with spaces file4.txt.1 source.c++
2177 archive.tar.gz file0.txt image0.jpg
2178 bin file1.TXT image1.JPG
2179 directory file3.tXt image2.jPg
2180 > crazy-complete-test --file-relative
2181 fish_expected: |
2182 > crazy-complete-test --file-relative
2183 archive.tar.gz file with spaces file3.tXt image1.JPG source.c++
2184 bin/ file0.txt file4.txt.1 image2.jPg
2185 directory/ file1.TXT image0.jpg README.md
2186 zsh_expected: |
2187 > crazy-complete-test --file-relative
2188 README.md file\ with\ spaces file4.txt.1 source.c++
2189 archive.tar.gz file0.txt image0.jpg
2190 bin/ file1.TXT image1.JPG
2191 directory/ file3.tXt image2.jPg
2192 ---
2193 number: 138
2194 definition_file: "filedir"
2195 description: "Check --file-ignore-txt-cpp"
2196 send: "crazy-complete-test --file-ignore-txt-cpp "
2197 bash_expected: |
2198 > crazy-complete-test --file-ignore-txt-cpp
2199 README.md directory image0.jpg
2200 archive.tar.gz file with spaces image1.JPG
2201 bin file4.txt.1 image2.jPg
2202 > crazy-complete-test --file-ignore-txt-cpp
2203 fish_expected: |
2204 > crazy-complete-test --file-ignore-txt-cpp
2205 archive.tar.gz directory/ file4.txt.1 image1.JPG README.md
2206 bin/ file with spaces image0.jpg image2.jPg
2207 zsh_expected: |
2208 > crazy-complete-test --file-ignore-txt-cpp
2209 README.md directory/ image0.jpg
2210 archive.tar.gz file\ with\ spaces image1.JPG
2211 bin/ file4.txt.1 image2.jPg
2212 ---
2213 number: 139
2214 definition_file: "filedir"
2215 description: "Check --file-ignore-txt-cpp-2"
2216 send: "crazy-complete-test --file-ignore-txt-cpp-2 "
2217 bash_expected: |
2218 > crazy-complete-test --file-ignore-txt-cpp-2
2219 README.md directory image0.jpg
2220 archive.tar.gz file with spaces image1.JPG
2221 bin file4.txt.1 image2.jPg
2222 > crazy-complete-test --file-ignore-txt-cpp-2
2223 fish_expected: |
2224 > crazy-complete-test --file-ignore-txt-cpp-2
2225 archive.tar.gz directory/ file4.txt.1 image1.JPG README.md
2226 bin/ file with spaces image0.jpg image2.jPg
2227 zsh_expected: |
2228 > crazy-complete-test --file-ignore-txt-cpp-2
2229 README.md directory/ image0.jpg
2230 archive.tar.gz file\ with\ spaces image1.JPG
2231 bin/ file4.txt.1 image2.jPg
2232 ---
2233 number: 140
2234 definition_file: "when"
2235 description: "Check with no options"
2236 send: "crazy-complete-test --"
2237 bash_expected: |
2238 > crazy-complete-test --
2239 --if-not-1 --option-1
2240 --if-not-1-or-not-2 --option-2
2241 > crazy-complete-test --
2242 fish_expected: |
2243 > crazy-complete-test --
2244 --if-not-1 --if-not-1-or-not-2 --option-1 --option-2
2245 zsh_expected: |
2246 > crazy-complete-test --
2247 --if-not-1 --option-1
2248 --if-not-1-or-not-2 --option-2
2249 ---
2250 number: 141
2251 definition_file: "when"
2252 description: "Check with no --option-1"
2253 send: "crazy-complete-test --option-1 --"
2254 bash_expected: |
2255 > crazy-complete-test --option-1 --
2256 --if-1-or-2 --option-2
2257 > crazy-complete-test --option-1 --
2258 fish_expected: |
2259 > crazy-complete-test --option-1 --
2260 --if-1-or-2 --option-2
2261 zsh_expected: |
2262 > crazy-complete-test --option-1 --
2263 --if-1-or-2 --option-2
2264 ---
2265 number: 142
2266 definition_file: "when"
2267 description: "Check with no --option-2"
2268 send: "crazy-complete-test --option-2 --"
2269 bash_expected: |
2270 > crazy-complete-test --option-2 --
2271 --if-1-or-2 --if-not-1 --option-1
2272 > crazy-complete-test --option-2 --
2273 fish_expected: |
2274 > crazy-complete-test --option-2 --
2275 --if-1-or-2 --if-not-1 --option-1
2276 zsh_expected: |
2277 > crazy-complete-test --option-2 --
2278 --if-1-or-2 --if-not-1 --option-1
2279 ---
2280 number: 143
2281 definition_file: "when"
2282 description: "Check with no --option-1 and --option-2"
2283 send: "crazy-complete-test --option-1 --option-2 --"
2284 bash_expected: |
2285 > crazy-complete-test --option-1 --option-2 --
2286 --if-1-and-2 --if-1-or-2
2287 > crazy-complete-test --option-1 --option-2 --if-1-
2288 fish_expected: |
2289 > crazy-complete-test --option-1 --option-2 --if-1-
2290 --if-1-and-2 --if-1-or-2
2291 zsh_expected: |
2292 > crazy-complete-test --option-1 --option-2 --if-1--2
2293 ---
2294 number: 144
2295 definition_file: "when"
2296 description: "Check special-values without options"
2297 send: "crazy-complete-test special-values --"
2298 bash_expected: |
2299 > crazy-complete-test special-values --arg=
2300 fish_expected: |
2301 > crazy-complete-test special-values --arg
2302 zsh_expected: |
2303 > crazy-complete-test special-values --arg=
2304 ---
2305 number: 145
2306 definition_file: "when"
2307 description: "Check special-values with --arg='foo bar'"
2308 send: "crazy-complete-test special-values --arg='foo bar' --"
2309 bash_expected: |
2310 > crazy-complete-test special-values --arg='foo bar' --if-arg-is-foo-bar
2311 fish_expected: |
2312 > crazy-complete-test special-values --arg='foo bar' --if-arg-is-foo-bar
2313 zsh_expected: |
2314 > crazy-complete-test special-values --arg='foo bar' --if-arg-is-foo-bar
2315 ---
2316 number: 146
2317 definition_file: "when"
2318 description: "Check special-values with --arg='\"'"
2319 send: "crazy-complete-test special-values --arg='\"' --"
2320 bash_expected: |
2321 > crazy-complete-test special-values --arg='"' --if-arg-is-double-quote
2322 fish_expected: |
2323 > crazy-complete-test special-values --arg='"' --if-arg-is-double-quote
2324 zsh_expected: |
2325 > crazy-complete-test special-values --arg='"' --if-arg-is-double-quote
2326 ---
2327 number: 147
2328 definition_file: "when"
2329 description: "Check special-values with --arg=\"'\""
2330 send: "crazy-complete-test special-values --arg=\"'\" --"
2331 bash_expected: |
2332 > crazy-complete-test special-values --arg="'" --if-arg-is-single-quote
2333 fish_expected: |
2334 > crazy-complete-test special-values --arg="'" --if-arg-is-single-quote
2335 zsh_expected: |
2336 > crazy-complete-test special-values --arg="'" --if-arg-is-single-quote
2337 ---
2338 number: 148
2339 definition_file: "long_opt_arg_sep"
2340 description: "Check long_opt_arg_sep (both)"
2341 send: "crazy-complete-test --both"
2342 bash_expected: |
2343 > crazy-complete-test --both=
2344 fish_expected: |
2345 > crazy-complete-test --both
2346 zsh_expected: |
2347 > crazy-complete-test --both=
2348 ---
2349 number: 149
2350 definition_file: "long_opt_arg_sep"
2351 description: "Check long_opt_arg_sep (equals)"
2352 send: "crazy-complete-test --equals"
2353 bash_expected: |
2354 > crazy-complete-test --equals=
2355 fish_expected: |
2356 > crazy-complete-test --equals
2357 zsh_expected: |
2358 > crazy-complete-test --equals=
2359 ---
2360 number: 150
2361 definition_file: "long_opt_arg_sep"
2362 description: "Check long_opt_arg_sep (space)"
2363 send: "crazy-complete-test --space"
2364 bash_expected: |
2365 > crazy-complete-test --space
2366 fish_expected: |
2367 > crazy-complete-test --space
2368 zsh_expected: |
2369 > crazy-complete-test --space
2370 ---
2371 number: 151
2372 definition_file: "key_value_pair"
2373 description: "key_value_pair: Check -o"
2374 send: "crazy-complete-test -o "
2375 bash_expected: |
2376 > crazy-complete-test -o
2377 animal async file nocomp number proc with_sep
2378 > crazy-complete-test -o
2379 fish_expected: |
2380 > crazy-complete-test -o
2381 animal= (select an animal) number= (select a number)
2382 async (set async mode) proc= (select a process)
2383 file= with_sep= (values containing sep)
2384 nocomp= (no completer)
2385 zsh_expected: |
2386 > crazy-complete-test -o
2387 animal -- select an animal
2388 async -- set async mode
2389 nocomp -- no completer
2390 number -- select a number
2391 proc -- select a process
2392 with_sep -- values containing sep
2393 file
2394 ---
2395 number: 152
2396 definition_file: "key_value_pair"
2397 description: "key_value_pair: Check -o a"
2398 send: "crazy-complete-test -o a"
2399 bash_expected: |
2400 > crazy-complete-test -o a
2401 animal async
2402 > crazy-complete-test -o a
2403 fish_expected: |
2404 > crazy-complete-test -o a
2405 animal= (select an animal) async (set async mode)
2406 zsh_expected: |
2407 > crazy-complete-test -o a
2408 animal -- select an animal
2409 async -- set async mode
2410 ---
2411 number: 153
2412 definition_file: "key_value_pair"
2413 description: "key_value_pair: Check -o an"
2414 send: "crazy-complete-test -o an"
2415 bash_expected: |
2416 > crazy-complete-test -o animal
2417 fish_expected: |
2418 > crazy-complete-test -o animal=
2419 zsh_expected: |
2420 > crazy-complete-test -o animal=
2421 ---
2422 number: 154
2423 definition_file: "key_value_pair"
2424 description: "key_value_pair: Check -o animal="
2425 send: "crazy-complete-test -o animal="
2426 bash_expected: |
2427 > crazy-complete-test -o animal=
2428 cat dog horse
2429 > crazy-complete-test -o animal=
2430 fish_expected: |
2431 > crazy-complete-test -o animal=
2432 animal=cat animal=dog animal=horse
2433 zsh_expected: |
2434 > crazy-complete-test -o animal=
2435 cat dog horse
2436 ---
2437 number: 155
2438 definition_file: "key_value_pair"
2439 description: "key_value_pair: Check -o number="
2440 send: "crazy-complete-test -o number="
2441 bash_expected: |
2442 > crazy-complete-test -o number=
2443 0 1 2
2444 > crazy-complete-test -o number=
2445 fish_expected: |
2446 > crazy-complete-test -o number=
2447 number=0 (zero) number=1 (one) number=2 (two)
2448 zsh_expected: |
2449 > crazy-complete-test -o number=
2450 0 -- zero
2451 1 -- one
2452 2 -- two
2453 ---
2454 number: 156
2455 definition_file: "key_value_pair"
2456 description: "key_value_pair: Check -o 'number="
2457 send: "crazy-complete-test -o 'number="
2458 bash_expected: |
2459 > crazy-complete-test -o 'number=
2460 number=0 number=1 number=2
2461 > crazy-complete-test -o 'number=
2462 fish_expected: |
2463 > crazy-complete-test -o 'number=
2464 'number=0 (zero) 'number=1 (one) 'number=2 (two)
2465 zsh_expected: |
2466 > crazy-complete-test -o 'number=
2467 0 -- zero
2468 1 -- one
2469 2 -- two
2470 ---
2471 number: 157
2472 definition_file: "key_value_pair"
2473 description: "key_value_pair: Check -o \"number="
2474 send: "crazy-complete-test -o \"number="
2475 bash_expected: |
2476 > crazy-complete-test -o "number=
2477 number=0 number=1 number=2
2478 > crazy-complete-test -o "number=
2479 fish_expected: |
2480 > crazy-complete-test -o "number=
2481 "number=0 (zero) "number=1 (one) "number=2 (two)
2482 zsh_expected: |
2483 > crazy-complete-test -o "number=
2484 0 -- zero
2485 1 -- one
2486 2 -- two
2487 ---
2488 number: 158
2489 definition_file: "key_value_pair"
2490 description: "key_value_pair: Check -o file=f"
2491 send: "crazy-complete-test -o file=f"
2492 bash_expected: |
2493 > crazy-complete-test -o file=f
2494 file with spaces file1.TXT file4.txt.1
2495 file0.txt file3.tXt
2496 > crazy-complete-test -o file=file
2497 fish_expected: |
2498 > crazy-complete-test -o file=file
2499 file=file with spaces file=file1.TXT file=file4.txt.1
2500 file=file0.txt file=file3.tXt
2501 zsh_expected: |
2502 > crazy-complete-test -o file=file
2503 ---
2504 number: 159
2505 definition_file: "key_value_pair"
2506 description: "key_value_pair: Check -o with_sep=value="
2507 comment: "Does not work for Bash yet"
2508 send: "crazy-complete-test -o with_sep=value="
2509 bash_expected: |
2510 > crazy-complete-test -o with_sep=value=value=foo
2511 fish_expected: |
2512 > crazy-complete-test -o with_sep=value=foo
2513 zsh_expected: |
2514 > crazy-complete-test -o with_sep=value=foo
2515 ---
2516 number: 160
2517 definition_file: "key_value_pair_exec"
2518 description: "key_value_pair_exec: Check -o"
2519 send: "crazy-complete-test -o "
2520 bash_expected: |
2521 > crazy-complete-test -o
2522 animal= async special
2523 > crazy-complete-test -o
2524 fish_expected: |
2525 > crazy-complete-test -o
2526 animal= (select an animal) special (special chars: []'"$`\)
2527 async (set async mode)
2528 zsh_expected: |
2529 > crazy-complete-test -o
2530 animal -- select an animal
2531 async -- set async mode
2532 special -- special chars: []'"$`\
2533 ---
2534 number: 161
2535 definition_file: "key_value_pair_exec"
2536 description: "key_value_pair_exec: Check -o a"
2537 send: "crazy-complete-test -o a"
2538 bash_expected: |
2539 > crazy-complete-test -o a
2540 animal= async
2541 > crazy-complete-test -o a
2542 fish_expected: |
2543 > crazy-complete-test -o a
2544 animal= (select an animal) async (set async mode)
2545 zsh_expected: |
2546 > crazy-complete-test -o a
2547 animal -- select an animal
2548 async -- set async mode
2549 ---
2550 number: 162
2551 definition_file: "key_value_pair_exec"
2552 description: "key_value_pair_exec: Check -o an"
2553 send: "crazy-complete-test -o an"
2554 bash_expected: |
2555 > crazy-complete-test -o animal=
2556 fish_expected: |
2557 > crazy-complete-test -o animal=
2558 zsh_expected: |
2559 > crazy-complete-test -o animal=
2560 ---
2561 number: 163
2562 definition_file: "key_value_pair_exec"
2563 description: "key_value_pair_exec: Check -o animal="
2564 send: "crazy-complete-test -o animal="
2565 bash_expected: |
2566 > crazy-complete-test -o animal=
2567 cat dog horse special
2568 > crazy-complete-test -o animal=
2569 fish_expected: |
2570 > crazy-complete-test -o animal=
2571 animal=cat (a cat) animal=horse (a horse)
2572 animal=dog (a dog) animal=special (:[]'"$`\)
2573 zsh_expected: |
2574 > crazy-complete-test -o animal=
2575 cat -- a cat
2576 dog -- a dog
2577 horse -- a horse
2578 special -- :[]'"$`\
2579 ---
2580 number: 164
2581 definition_file: "key_value_pair_exec"
2582 description: "key_value_pair_exec: Check -o 'animal="
2583 send: "crazy-complete-test -o 'animal="
2584 bash_expected: |
2585 > crazy-complete-test -o 'animal=
2586 animal=cat animal=dog animal=horse animal=special
2587 > crazy-complete-test -o 'animal=
2588 fish_expected: |
2589 > crazy-complete-test -o 'animal=
2590 'animal=cat (a cat) 'animal=horse (a horse)
2591 'animal=dog (a dog) 'animal=special (:[]'"$`\)
2592 zsh_expected: |
2593 > crazy-complete-test -o 'animal=
2594 cat -- a cat
2595 dog -- a dog
2596 horse -- a horse
2597 special -- :[]'"$`\
2598 ---
2599 number: 165
2600 definition_file: "key_value_pair_exec"
2601 description: "key_value_pair_exec: Check -o \"animal="
2602 send: "crazy-complete-test -o \"animal="
2603 bash_expected: |
2604 > crazy-complete-test -o "animal=
2605 animal=cat animal=dog animal=horse animal=special
2606 > crazy-complete-test -o "animal=
2607 fish_expected: |
2608 > crazy-complete-test -o "animal=
2609 "animal=cat (a cat) "animal=horse (a horse)
2610 "animal=dog (a dog) "animal=special (:[]'"$`\)
2611 zsh_expected: |
2612 > crazy-complete-test -o "animal=
2613 cat -- a cat
2614 dog -- a dog
2615 horse -- a horse
2616 special -- :[]'"$`\
2617 ---
2618 number: 166
2619 definition_file: "key_value_pair"
2620 description: "key_value_pair: Check --condition "
2621 send: "crazy-complete-test --condition "
2622 bash_expected: |
2623 > crazy-complete-test --condition
2624 animal async file nocomp number proc with_sep
2625 > crazy-complete-test --condition
2626 fish_expected: |
2627 > crazy-complete-test --condition
2628 animal= (select an animal) nocomp= (no completer)
2629 async (set async mode) number= (select a number)
2630 disabled (disabled option) proc= (select a process)
2631 file= with_sep= (values containing sep)
2632 zsh_expected: |
2633 > crazy-complete-test --condition
2634 animal -- select an animal
2635 async -- set async mode
2636 nocomp -- no completer
2637 number -- select a number
2638 proc -- select a process
2639 with_sep -- values containing sep
2640 file
2641 ---
2642 number: 167
2643 definition_file: "key_value_list_exec"
2644 description: "key_value_list_exec: Check -o"
2645 send: "crazy-complete-test -o "
2646 bash_expected: |
2647 > crazy-complete-test -o
2648 animal async exclusive optional repeatable special
2649 > crazy-complete-test -o
2650 fish_expected: |
2651 > crazy-complete-test -o
2652 animal= (select an animal) optional (optional argument)
2653 async (set async mode) repeatable (repeatable option)
2654 exclusive (disable options) special (special chars: []'"$`\)
2655 zsh_expected: |
2656 > crazy-complete-test -o
2657 animal -- select an animal
2658 async -- set async mode
2659 exclusive -- disable options
2660 optional -- optional argument
2661 repeatable -- repeatable option
2662 special -- special chars: []'"$`\
2663 ---
2664 number: 168
2665 definition_file: "key_value_list_exec"
2666 description: "key_value_list_exec: Check -o a"
2667 send: "crazy-complete-test -o a"
2668 bash_expected: |
2669 > crazy-complete-test -o a
2670 animal async
2671 > crazy-complete-test -o a
2672 fish_expected: |
2673 > crazy-complete-test -o a
2674 animal= (select an animal) async (set async mode)
2675 zsh_expected: |
2676 > crazy-complete-test -o a
2677 animal -- select an animal
2678 async -- set async mode
2679 ---
2680 number: 169
2681 definition_file: "key_value_list_exec"
2682 description: "key_value_list_exec: Check -o an"
2683 send: "crazy-complete-test -o an"
2684 bash_expected: |
2685 > crazy-complete-test -o animal
2686 fish_expected: |
2687 > crazy-complete-test -o animal=
2688 zsh_expected: |
2689 > crazy-complete-test -o animal=
2690 ---
2691 number: 170
2692 definition_file: "key_value_list_exec"
2693 description: "key_value_list_exec: Check -o animal="
2694 send: "crazy-complete-test -o animal="
2695 bash_expected: |
2696 > crazy-complete-test -o animal=
2697 cat dog horse special
2698 > crazy-complete-test -o animal=
2699 fish_expected: |
2700 > crazy-complete-test -o animal=
2701 animal=cat (a cat) animal=horse (a horse)
2702 animal=dog (a dog) animal=special (:[]'"$`\)
2703 zsh_expected: |
2704 > crazy-complete-test -o animal=
2705 cat -- a cat
2706 dog -- a dog
2707 horse -- a horse
2708 special -- :[]'"$`\
2709 ---
2710 number: 171
2711 definition_file: "key_value_list_exec"
2712 description: "key_value_list_exec: Check -o optional="
2713 send: "crazy-complete-test -o optional="
2714 bash_expected: |
2715 > crazy-complete-test -o optional=
2716 cat dog horse special
2717 > crazy-complete-test -o optional=
2718 fish_expected: |
2719 > crazy-complete-test -o optional=
2720 optional=cat (a cat) optional=horse (a horse)
2721 optional=dog (a dog) optional=special (:[]'"$`\)
2722 zsh_expected: |
2723 > crazy-complete-test -o optional=
2724 cat -- a cat
2725 dog -- a dog
2726 horse -- a horse
2727 special -- :[]'"$`\
2728 ---
2729 number: 172
2730 definition_file: "key_value_list_exec"
2731 description: "key_value_list_exec: Check -o 'animal="
2732 send: "crazy-complete-test -o 'animal="
2733 bash_expected: |
2734 > crazy-complete-test -o 'animal=
2735 animal=cat animal=dog animal=horse animal=special
2736 > crazy-complete-test -o 'animal=
2737 fish_expected: |
2738 > crazy-complete-test -o 'animal=
2739 'animal=cat (a cat) 'animal=horse (a horse)
2740 'animal=dog (a dog) 'animal=special (:[]'"$`\)
2741 zsh_expected: |
2742 > crazy-complete-test -o 'animal=
2743 cat -- a cat
2744 dog -- a dog
2745 horse -- a horse
2746 special -- :[]'"$`\
2747 ---
2748 number: 173
2749 definition_file: "key_value_list_exec"
2750 description: "key_value_list_exec: Check -o \"animal="
2751 send: "crazy-complete-test -o \"animal="
2752 bash_expected: |
2753 > crazy-complete-test -o "animal=
2754 animal=cat animal=dog animal=horse animal=special
2755 > crazy-complete-test -o "animal=
2756 fish_expected: |
2757 > crazy-complete-test -o "animal=
2758 "animal=cat (a cat) "animal=horse (a horse)
2759 "animal=dog (a dog) "animal=special (:[]'"$`\)
2760 zsh_expected: |
2761 > crazy-complete-test -o "animal=
2762 cat -- a cat
2763 dog -- a dog
2764 horse -- a horse
2765 special -- :[]'"$`\
2766 ---
2767 number: 174
2768 definition_file: "key_value_list_exec"
2769 description: "key_value_list_exec: Check -o exclusive,"
2770 send: "crazy-complete-test -o exclusive,"
2771 bash_expected: |
2772 > crazy-complete-test -o exclusive,
2773 exclusive,optional exclusive,repeatable exclusive,special
2774 > crazy-complete-test -o exclusive,
2775 fish_expected: |
2776 > crazy-complete-test -o exclusive,
2777 …xclusive,optional (optional argument)
2778 …xclusive,repeatable (repeatable option)
2779 …xclusive,special (special chars: []'"$`\)
2780 zsh_expected: |
2781 > crazy-complete-test -o exclusive,
2782 optional -- optional argument
2783 repeatable -- repeatable option
2784 special -- special chars: []'"$`\
2785 ---
2786 number: 175
2787 definition_file: "key_value_list_exec"
2788 description: "key_value_list_exec: Check -o repeatable,"
2789 send: "crazy-complete-test -o repeatable,"
2790 bash_expected: |
2791 > crazy-complete-test -o repeatable,
2792 repeatable,animal repeatable,exclusive repeatable,repeatable
2793 repeatable,async repeatable,optional repeatable,special
2794 > crazy-complete-test -o repeatable,
2795 fish_expected: |
2796 > crazy-complete-test -o repeatable,
2797 …peatable,animal= (select an animal)
2798 …peatable,async (set async mode)
2799 …peatable,exclusive (disable options)
2800 …peatable,optional (optional argument)
2801 …peatable,repeatable (repeatable option)
2802 …peatable,special (special chars: []'"$`\)
2803 zsh_expected: |
2804 > crazy-complete-test -o repeatable,
2805 animal -- select an animal
2806 async -- set async mode
2807 exclusive -- disable options
2808 optional -- optional argument
2809 repeatable -- repeatable option
2810 special -- special chars: []'"$`\
2811 ---
2812 number: 176
2813 definition_file: "option_arguments"
2814 description: "option_arguments: check -O (without space)"
2815 send: "crazy-complete-test -O"
2816 bash_expected: |
2817 > crazy-complete-test -O
2818 -Oflag -Omode
2819 > crazy-complete-test -O
2820 fish_expected: |
2821 > crazy-complete-test -O
2822 -Oflag -Omode=
2823 zsh_expected: |
2824 > crazy-complete-test -O
2825 flag mode
2826 ---
2827 number: 177
2828 definition_file: "option_arguments"
2829 description: "option_arguments: check -Omode=strict,"
2830 send: "crazy-complete-test -Omode=strict,"
2831 bash_expected: |
2832 > crazy-complete-test -Omode=strict,flag
2833 fish_expected: |
2834 > crazy-complete-test -Omode=strict,flag
2835 zsh_expected: |
2836 > crazy-complete-test -Omode=strict,flag,
2837 ---
2838 number: 178
2839 definition_file: "option_arguments"
2840 description: "option_arguments: check -O (with space)"
2841 send: "crazy-complete-test -O "
2842 bash_expected: |
2843 > crazy-complete-test -O
2844 flag mode
2845 > crazy-complete-test -O
2846 fish_expected: |
2847 > crazy-complete-test -O
2848 flag mode=
2849 zsh_expected: |
2850 > crazy-complete-test -O
2851 flag mode
2852 ---
2853 number: 179
2854 definition_file: "option_arguments"
2855 description: "option_arguments: check -O mode=strict,"
2856 send: "crazy-complete-test -O mode=strict,"
2857 bash_expected: |
2858 > crazy-complete-test -O mode=strict,flag
2859 fish_expected: |
2860 > crazy-complete-test -O mode=strict,flag
2861 zsh_expected: |
2862 > crazy-complete-test -O mode=strict,flag,
2863 ---
2864 number: 180
2865 definition_file: "option_arguments"
2866 description: "option_arguments: check -fO (without space)"
2867 send: "crazy-complete-test -fO"
2868 bash_expected: |
2869 > crazy-complete-test -fO
2870 -fOflag -fOmode
2871 > crazy-complete-test -fO
2872 fish_expected: |
2873 > crazy-complete-test -fO
2874 -fOflag -fOmode=
2875 zsh_expected: |
2876 > crazy-complete-test -fO
2877 flag mode
2878 ---
2879 number: 181
2880 definition_file: "option_arguments"
2881 description: "option_arguments: check -fOmode=strict,"
2882 send: "crazy-complete-test -fOmode=strict,"
2883 bash_expected: |
2884 > crazy-complete-test -fOmode=strict,flag
2885 fish_expected: |
2886 > crazy-complete-test -fOmode=strict,flag
2887 zsh_expected: |
2888 > crazy-complete-test -fOmode=strict,flag,
2889 ---
2890 number: 182
2891 definition_file: "option_arguments"
2892 description: "option_arguments: check -fO (with space)"
2893 send: "crazy-complete-test -fO "
2894 bash_expected: |
2895 > crazy-complete-test -fO
2896 flag mode
2897 > crazy-complete-test -fO
2898 fish_expected: |
2899 > crazy-complete-test -fO
2900 flag mode=
2901 zsh_expected: |
2902 > crazy-complete-test -fO
2903 flag mode
2904 ---
2905 number: 183
2906 definition_file: "option_arguments"
2907 description: "option_arguments: check -fO mode=strict,"
2908 send: "crazy-complete-test -fO mode=strict,"
2909 bash_expected: |
2910 > crazy-complete-test -fO mode=strict,flag
2911 fish_expected: |
2912 > crazy-complete-test -fO mode=strict,flag
2913 zsh_expected: |
2914 > crazy-complete-test -fO mode=strict,flag,
2915 ---
2916 number: 184
2917 definition_file: "option_arguments"
2918 description: "option_arguments: check -option"
2919 send: "crazy-complete-test -option "
2920 bash_expected: |
2921 > crazy-complete-test -option
2922 flag mode
2923 > crazy-complete-test -option
2924 fish_expected: |
2925 > crazy-complete-test -option
2926 flag mode=
2927 zsh_expected: |
2928 > crazy-complete-test -option
2929 flag mode
2930 ---
2931 number: 185
2932 definition_file: "option_arguments"
2933 description: "option_arguments: check -option mode=strict,"
2934 send: "crazy-complete-test -option mode=strict,"
2935 bash_expected: |
2936 > crazy-complete-test -option mode=strict,flag
2937 fish_expected: |
2938 > crazy-complete-test -option mode=strict,flag
2939 zsh_expected: |
2940 > crazy-complete-test -option mode=strict,flag,
2941 ---
2942 number: 186
2943 definition_file: "option_arguments"
2944 description: "option_arguments: check -option=mode=strict,"
2945 send: "crazy-complete-test -option=mode=strict,"
2946 bash_expected: |
2947 > crazy-complete-test -option=mode=strict,flag
2948 fish_expected: |
2949 > crazy-complete-test -option=mode=strict,flag
2950 zsh_expected: |
2951 > crazy-complete-test -option=mode=strict,flag,
2952 ---
2953 number: 187
2954 definition_file: "option_arguments"
2955 description: "option_arguments: check --option"
2956 send: "crazy-complete-test --option "
2957 bash_expected: |
2958 > crazy-complete-test --option
2959 flag mode
2960 > crazy-complete-test --option
2961 fish_expected: |
2962 > crazy-complete-test --option
2963 flag mode=
2964 zsh_expected: |
2965 > crazy-complete-test --option
2966 flag mode
2967 ---
2968 number: 188
2969 definition_file: "option_arguments"
2970 description: "option_arguments: check --option mode=strict,"
2971 send: "crazy-complete-test --option mode=strict,"
2972 bash_expected: |
2973 > crazy-complete-test --option mode=strict,flag
2974 fish_expected: |
2975 > crazy-complete-test --option mode=strict,flag
2976 zsh_expected: |
2977 > crazy-complete-test --option mode=strict,flag,
2978 ---
2979 number: 189
2980 definition_file: "option_arguments"
2981 description: "option_arguments: check --option=mode=strict,"
2982 send: "crazy-complete-test --option=mode=strict,"
2983 bash_expected: |
2984 > crazy-complete-test --option=mode=strict,flag
2985 fish_expected: |
2986 > crazy-complete-test --option=mode=strict,flag
2987 zsh_expected: |
2988 > crazy-complete-test --option=mode=strict,flag,
2989 ---
2990 number: 190
2991 definition_file: "when"
2992 description: "when: advanced: check --"
2993 send: "crazy-complete-test advanced --"
2994 bash_expected: |
2995 > crazy-complete-test advanced --arg=
2996 fish_expected: |
2997 > crazy-complete-test advanced --arg
2998 zsh_expected: |
2999 > crazy-complete-test advanced --arg=
3000 ---
3001 number: 191
3002 definition_file: "when"
3003 description: "when: advanced: check --arg FOO"
3004 send: "crazy-complete-test advanced --arg FOO --"
3005 bash_expected: |
3006 > crazy-complete-test advanced --arg FOO --if-arg-is-foo-or-bar-nocase
3007 fish_expected: |
3008 > crazy-complete-test advanced --arg FOO --if-arg-is-foo-or-bar-nocase
3009 zsh_expected: |
3010 > crazy-complete-test advanced --arg FOO --if-arg-is-foo-or-bar-nocase
3011 ---
3012 number: 192
3013 definition_file: "when"
3014 description: "when: advanced: check --arg BAR"
3015 send: "crazy-complete-test advanced --arg BAR --"
3016 bash_expected: |
3017 > crazy-complete-test advanced --arg BAR --if-arg-is-foo-or-bar-nocase
3018 fish_expected: |
3019 > crazy-complete-test advanced --arg BAR --if-arg-is-foo-or-bar-nocase
3020 zsh_expected: |
3021 > crazy-complete-test advanced --arg BAR --if-arg-is-foo-or-bar-nocase
3022 ---
3023 number: 193
3024 definition_file: "when"
3025 description: "when: advanced: check --arg regex"
3026 send: "crazy-complete-test advanced --arg regex --"
3027 bash_expected: |
3028 > crazy-complete-test advanced --arg regex --
3029 --if-arg-is-regex --if-arg-is-regex-nocase
3030 > crazy-complete-test advanced --arg regex --if-arg-is-regex
3031 fish_expected: |
3032 > crazy-complete-test advanced --arg regex --if-arg-is-regex
3033 …-is-regex …-is-regex-nocase
3034 zsh_expected: |
3035 > crazy-complete-test advanced --arg regex --if-arg-is-regex
3036 ---
3037 number: 194
3038 definition_file: "when"
3039 description: "when: advanced: check --arg REGEX"
3040 send: "crazy-complete-test advanced --arg REGEX --"
3041 bash_expected: |
3042 > crazy-complete-test advanced --arg REGEX --if-arg-is-regex-nocase
3043 fish_expected: |
3044 > crazy-complete-test advanced --arg REGEX --if-arg-is-regex-nocase
3045 zsh_expected: |
3046 > crazy-complete-test advanced --arg REGEX --if-arg-is-regex-nocase
3047 ---
3048 number: 195
3049 definition_file: "when"
3050 description: "when: any: check --arg foo"
3051 send: "crazy-complete-test any --arg foo --"
3052 bash_expected: |
3053 > crazy-complete-test any --arg foo --
3054 --if-any-arg-is-foo --if-arg-is-foo
3055 > crazy-complete-test any --arg foo --if-a
3056 fish_expected: |
3057 > crazy-complete-test any --arg foo --if-a
3058 --if-any-arg-is-foo --if-arg-is-foo
3059 zsh_expected: |
3060 > crazy-complete-test any --arg foo --if-a
3061 ---
3062 number: 196
3063 definition_file: "when"
3064 description: "when: any: check --arg foo --arg override"
3065 send: "crazy-complete-test any --arg foo --arg override --"
3066 bash_expected: |
3067 > crazy-complete-test any --arg foo --arg override --if-any-arg-is-foo
3068 fish_expected: |
3069 > crazy-complete-test any --arg foo --arg override --if-any-arg-is-foo
3070 zsh_expected: |
3071 > crazy-complete-test any --arg foo --arg override --if-any-arg-is-foo
3072 ---
3073 number: 197
3074 definition_file: "when"
3075 description: "when: any: check --arg regex"
3076 send: "crazy-complete-test any --arg regex --"
3077 bash_expected: |
3078 > crazy-complete-test any --arg regex --
3079 --if-any-arg-is-regex --if-arg-is-regex
3080 > crazy-complete-test any --arg regex --if-a
3081 fish_expected: |
3082 > crazy-complete-test any --arg regex --if-a
3083 --if-any-arg-is-regex --if-arg-is-regex
3084 zsh_expected: |
3085 > crazy-complete-test any --arg regex --if-a
3086 ---
3087 number: 198
3088 definition_file: "when"
3089 description: "when: any: check --arg regex --arg override"
3090 send: "crazy-complete-test any --arg regex --arg override --"
3091 bash_expected: |
3092 > crazy-complete-test any --arg regex --arg override --if-any-arg-is-regex
3093 fish_expected: |
3094 > crazy-complete-test any --arg regex --arg override --if-any-arg-is-regex
3095 zsh_expected: |
3096 > crazy-complete-test any --arg regex --arg override --if-any-arg-is-regex
3097 ---
3098 number: 199
3099 definition_file: "when"
3100 description: "Check positional_contains (ignoring case)"
3101 send: "crazy-complete-test positionals FOO --"
3102 bash_expected: |
3103 > crazy-complete-test positionals FOO --
3104 --if-positional-contains-nocase --if-positional-count
3105 > crazy-complete-test positionals FOO --if-positional-co
3106 fish_expected: |
3107 > crazy-complete-test positionals FOO --if-positional-co
3108 …tional-contains-nocase …tional-count
3109 zsh_expected: |
3110 > crazy-complete-test positionals FOO --if-positional-co
3111 ---
3112 number: 200
3113 definition_file: "when"
3114 description: "Check positional_match"
3115 send: "crazy-complete-test positionals regex --"
3116 bash_expected: |
3117 > crazy-complete-test positionals regex --
3118 --if-positional-count --if-positional-regex-nocase
3119 --if-positional-regex
3120 > crazy-complete-test positionals regex --if-positional-
3121 fish_expected: |
3122 > crazy-complete-test positionals regex --if-positional-
3123 …sitional-count …sitional-regex …sitional-regex-nocase
3124 zsh_tabs: 2
3125 zsh_expected: |
3126 > crazy-complete-test positionals regex --if-positional-
3127 --if-positional-count --if-positional-regex-nocase
3128 --if-positional-regex
3129 ---
3130 number: 201
3131 definition_file: "when"
3132 description: "Check positional_match (ignoring case)"
3133 send: "crazy-complete-test positionals REGEX --"
3134 bash_expected: |
3135 > crazy-complete-test positionals REGEX --
3136 --if-positional-count --if-positional-regex-nocase
3137 > crazy-complete-test positionals REGEX --if-positional-
3138 fish_expected: |
3139 > crazy-complete-test positionals REGEX --if-positional-
3140 …sitional-count …sitional-regex-nocase
3141 zsh_tabs: 2
3142 zsh_expected: |
3143 > crazy-complete-test positionals REGEX --if-positional-
3144 --if-positional-count --if-positional-regex-nocase