Debian Codegraph @

test/tests/key_value_pair.yaml

raw
1 prog: "crazy-complete-test"
2 options:
3 - option_strings: ["-o"]
4 complete: ["key_value_pair", '=', [
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 ]]
13
14 - option_strings: ["--condition"]
15 complete: ["key_value_pair", '=', [
16 ['async', 'set async mode', null],
17 ['nocomp', 'no completer', ["none"]],
18 ['animal', 'select an animal', ["choices", ["cat", "dog", "horse"]]],
19 ['number', 'select a number', ["choices", {"0": "zero", "1": "one", "2": "two"}]],
20 ['proc', 'select a process', ['combine', [["pid"], ['process']]]],
21 ['file', null, ["file", {"directory": "%TEST_DIR%/test_data"}]],
22 ['with_sep', 'values containing sep', ['choices', ['value=foo']]],
23 ['disabled', 'disabled option', null]
24 ], '_key_value_pair_condition']