Debian Codegraph @

test/tests/key_value_list.yaml

raw
1 prog: "crazy-complete-test"
2 options:
3 - option_strings: ["-o"]
4 complete: ["key_value_list", ',', '=', [
5 ['async', 'set async mode', null],
6 ['nocomp', 'no completer', ["none"]],
7 ['animal', 'select an animal', ["choices", ["cat", "dog", "horse"]]],
8 ['number', 'select a number', ["choices", {"0": "zero", "1": "one", "2": "two"}]],
9 ['proc', 'select a process', ['combine', [["pid"], ['process']]]],
10 ['file', null, ["file", {"directory": "%TEST_DIR%/test_data"}]],
11 ['with_sep', 'values containing sep', ['choices', ['value=foo']]],
12 ['exclusive', 'deactivate some options', null, ['async', 'nocomp', 'animal', 'number']],
13 ['*repeatable', 'repeatable option', null]
14 ]]
15
16 - option_strings: ["--condition"]
17 complete: ["key_value_list", ',', '=', [
18 ['async', 'set async mode', null],
19 ['nocomp', 'no completer', ["none"]],
20 ['animal', 'select an animal', ["choices", ["cat", "dog", "horse"]]],
21 ['number', 'select a number', ["choices", {"0": "zero", "1": "one", "2": "two"}]],
22 ['proc', 'select a process', ['combine', [["pid"], ['process']]]],
23 ['file', null, ["file", {"directory": "%TEST_DIR%/test_data"}]],
24 ['with_sep', 'values containing sep', ['choices', ['value=foo']]],
25 ['exclusive', 'deactivate some options', null, ['async', 'nocomp', 'animal', 'number']],
26 ['*repeatable', 'repeatable option', null],
27 ['disabled', 'disabled option', null]
28 ], '_key_value_list_condition']