OILS / testdata / completion / bash_oracle.py View on Github | oilshell.org

134 lines, 104 significant
1#
2# DO NOT EDIT -- Generated by testdata/completion/bash_oracle.sh
3#
4# bash --version:
5# GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
6# Copyright (C) 2013 Free Software Foundation, Inc.
7# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
8#
9# This is free software; you are free to change and redistribute it.
10# There is NO WARRANTY, to the extent permitted by law.
11#
12# bash_completion:'
13#
14# 601749d5105ea2262290a239cfad4b0a testdata/completion/bash_completion
15# -rw-rw-r-- 1 andy andy 72681 Dec 20 20:40 testdata/completion/bash_completion
16#
17CASES = []
18
19case = {}
20CASES.append(case)
21case["code"] = 'echo foo:bar --color=auto\t'
22case["COMP_WORDS"] = ['echo', 'foo', ':', 'bar', '--color', '=', 'auto']
23
24case = {}
25CASES.append(case)
26case["code"] = 'echo foo=one:two:=three --color=auto\t'
27case["COMP_WORDS"] = ['echo', 'foo', '=', 'one', ':', 'two', ':=', 'three', '--color', '=', 'auto']
28
29case = {}
30CASES.append(case)
31case["code"] = 'echo "foo:bar|" --color=auto\t'
32case["COMP_WORDS"] = ['echo', '"foo:bar|"', '--color', '=', 'auto']
33
34
35case = {}
36CASES.append(case)
37case["code"] = 'noflags foo:bar --color=auto\t'
38case["COMP_LINE"] = 'noflags foo:bar --color=auto'
39case["COMP_POINT"] = '28'
40case["COMP_WORDS"] = ['noflags', 'foo', ':', 'bar', '--color', '=', 'auto']
41case["COMP_CWORD"] = '6'
42case["_init_completion_flags"] = []
43case["words"] = ['noflags', 'foo', ':', 'bar', '--color', '=', 'auto']
44case["cur"] = 'auto'
45case["prev"] = '='
46case["cword"] = '6'
47case["split"] = ''
48
49case = {}
50CASES.append(case)
51case["code"] = 'noflags "foo:bar|" --color=auto\t'
52case["COMP_LINE"] = 'noflags "foo:bar|" --color=auto'
53case["COMP_POINT"] = '31'
54case["COMP_WORDS"] = ['noflags', '"foo:bar|"', '--color', '=', 'auto']
55case["COMP_CWORD"] = '4'
56case["_init_completion_flags"] = []
57case["words"] = ['noflags', '"foo:bar|"', '--color', '=', 'auto']
58case["cur"] = 'auto'
59case["prev"] = '='
60case["cword"] = '4'
61case["split"] = ''
62
63case = {}
64CASES.append(case)
65case["code"] = 'noflags "foo:bar|\t'
66case["COMP_LINE"] = 'noflags "foo:bar|'
67case["COMP_POINT"] = '17'
68case["COMP_WORDS"] = ['noflags', '"foo:bar|']
69case["COMP_CWORD"] = '1'
70case["_init_completion_flags"] = []
71case["words"] = ['noflags', '"foo:bar|']
72case["cur"] = '"foo:bar|'
73case["prev"] = 'noflags'
74case["cword"] = '1'
75case["split"] = ''
76
77
78case = {}
79CASES.append(case)
80case["code"] = 's foo:bar --color=auto\t'
81case["COMP_LINE"] = 's foo:bar --color=auto'
82case["COMP_POINT"] = '22'
83case["COMP_WORDS"] = ['s', 'foo', ':', 'bar', '--color', '=', 'auto']
84case["COMP_CWORD"] = '6'
85case["_init_completion_flags"] = ['-s']
86case["words"] = ['s', 'foo', ':', 'bar', '--color=auto']
87case["cur"] = 'auto'
88case["prev"] = '--color'
89case["cword"] = '4'
90case["split"] = 'true'
91
92case = {}
93CASES.append(case)
94case["code"] = 's foo:bar --color auto\t'
95case["COMP_LINE"] = 's foo:bar --color auto'
96case["COMP_POINT"] = '22'
97case["COMP_WORDS"] = ['s', 'foo', ':', 'bar', '--color', 'auto']
98case["COMP_CWORD"] = '5'
99case["_init_completion_flags"] = ['-s']
100case["words"] = ['s', 'foo', ':', 'bar', '--color', 'auto']
101case["cur"] = 'auto'
102case["prev"] = '--color'
103case["cword"] = '5'
104case["split"] = 'false'
105
106
107case = {}
108CASES.append(case)
109case["code"] = 'n foo:bar --color=auto\t'
110case["COMP_LINE"] = 'n foo:bar --color=auto'
111case["COMP_POINT"] = '22'
112case["COMP_WORDS"] = ['n', 'foo', ':', 'bar', '--color', '=', 'auto']
113case["COMP_CWORD"] = '6'
114case["_init_completion_flags"] = ['-n', '=']
115case["words"] = ['n', 'foo', ':', 'bar', '--color=auto']
116case["cur"] = '--color=auto'
117case["prev"] = 'bar'
118case["cword"] = '4'
119case["split"] = ''
120
121
122case = {}
123CASES.append(case)
124case["code"] = 'n2 foo:bar --color=auto\t'
125case["COMP_LINE"] = 'n2 foo:bar --color=auto'
126case["COMP_POINT"] = '23'
127case["COMP_WORDS"] = ['n2', 'foo', ':', 'bar', '--color', '=', 'auto']
128case["COMP_CWORD"] = '6'
129case["_init_completion_flags"] = ['-n', ':=']
130case["words"] = ['n2', 'foo:bar', '--color=auto']
131case["cur"] = '--color=auto'
132case["prev"] = 'foo:bar'
133case["cword"] = '2'
134case["split"] = ''