File: when-test.yaml

package info (click to toggle)
crazy-complete 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,404 kB
  • sloc: python: 7,949; sh: 4,636; makefile: 74
file content (22 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
prog: crazy-complete-test
options:
  - option_strings: ['--files']

  - option_strings: ['--directories']

  - option_strings: ['--complete']
    complete: ['choices', ['file1', 'file2', 'file3']]
    when: 'has_option --files'

  - option_strings: ['--complete']
    complete: ['choices', ['dir1', 'dir2', 'dir3']]
    when: 'has_option --directories'

positionals:
  - number: 1
    complete: ['choices', ['file1', 'file2', 'file3']]
    when: 'has_option --files'

  - number: 1
    complete: ['choices', ['dir1', 'dir2', 'dir3']]
    when: 'has_option --directories'