-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Expand file tree
/
Copy pathcompletion.js.test.cjs
More file actions
149 lines (129 loc) · 3.51 KB
/
completion.js.test.cjs
File metadata and controls
149 lines (129 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/commands/completion.js TAP completion --no- flags > flags 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion commands with no completion > no results 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion after custom definition flag requiring value > custom definition non-Boolean flag handled 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion cannot complete options that take a value in mid-command > does not try to complete option arguments in the middle of a command 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion completion > both shells 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion completion no known shells > no responses 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion completion wrong word count > no responses 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion of invalid command name does nothing > no results 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion with double-dash escape in command line > double-dash escape handled 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion completion with non-flag word > non-flag word completion 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion double dashes escape from flag completion > full command list 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion filtered subcommands > filtered subcommands 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion flags > flags 1`] = `
Array []
`
exports[`test/lib/commands/completion.js TAP completion multiple command names > multiple command names 1`] = `
Array [
String(
access
audit
author
add
),
]
`
exports[`test/lib/commands/completion.js TAP completion single command name > single command name 1`] = `
Array [
"config",
]
`
exports[`test/lib/commands/completion.js TAP completion subcommand completion > subcommands 1`] = `
Array [
String(
get
grant
list
revoke
set
),
]
`
exports[`test/lib/commands/completion.js TAP completion trust filtered subcommands > trust filtered subcommands 1`] = `
Array [
String(
github
gitlab
),
]
`
exports[`test/lib/commands/completion.js TAP completion trust github flags > trust github flags with custom definitions 1`] = `
Array [
String(
--file
--repository
--repo
--environment
--env
--dry-run
--json
--registry
--yes
--no-dry-run
--no-json
--no-yes
),
]
`
exports[`test/lib/commands/completion.js TAP completion trust gitlab flags > trust gitlab flags with custom definitions 1`] = `
Array [
String(
--file
--project
--environment
--env
--dry-run
--json
--registry
--yes
--no-dry-run
--no-json
--no-yes
),
]
`
exports[`test/lib/commands/completion.js TAP completion trust subcommands > trust subcommands 1`] = `
Array [
String(
github
gitlab
circleci
list
revoke
),
]
`
exports[`test/lib/commands/completion.js TAP windows without bash > no output 1`] = `
Array []
`