-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathfastlane.ts
246 lines (246 loc) · 6.4 KB
/
fastlane.ts
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
const completionSpec: Fig.Spec = {
name: "fastlane",
description:
"Fastlane is an open source platform aimed at simplifying Android and iOS deployment",
subcommands: [
{
name: "init",
description: "Helps you with your initial fastlane setup",
subcommands: [
{
name: "swift",
description:
"Fastlane configuration written in Swift (Beta). Swift setup is still in beta",
},
],
options: [
{
name: ["-u", "--user"],
description: "Only iOS projects Your Apple ID",
args: {
name: "appleID",
description: "Your Apple ID",
},
},
],
},
{
name: "action",
description: "Shows more information for a specific command",
args: {
name: "tool_name",
},
},
{
name: "actions",
description: "Lists all available fastlane actions",
},
{
name: "add_plugin",
description: "Add a new plugin to your fastlane setup",
args: {
name: "plugin_name",
},
},
{
name: "docs",
description:
"Generate a markdown based documentation based on the Fastfile",
options: [
{
name: ["-f", "--force"],
description:
"Overwrite the existing README.md in the ./fastlane folder",
},
],
},
{
name: "enable_auto_complete",
description: "Enable tab auto completion",
options: [
{
name: ["-c", "--custom"],
description:
"Add custom command(s) for which tab auto complete should be enabled too",
args: {
name: "<command1>...<commandN>",
},
},
],
},
{
name: "env",
description:
"Print your fastlane environment, use this when you submit an issue on GitHub",
},
{
name: "help",
description: "Display global or [command] help documentation",
},
{
name: "install_plugins",
description: "Install all plugins for this project",
},
{
name: "lanes",
description: "Lists all available lanes and shows their description",
},
{
name: "list",
description: "Lists all available lanes without description",
options: [
{
name: ["-j", "--json"],
description: "Output the lanes in JSON instead of text",
},
],
},
{
name: "new_action",
description: "Create a new custom action for fastlane",
options: [
{
name: "--name",
description: "Name of your new action",
isRequired: true,
args: {
name: "action_name",
},
},
],
},
{
name: "new_plugin",
description: "Create a new plugin that can be used with fastlane",
args: {
name: "plugin_name",
isOptional: true,
},
},
{
name: "run",
description: "Run a fastlane one-off action without a full lane",
args: {
name: "action",
// TODO: Depending on the current platform directory need to show only available actions for that platform
},
},
{
name: "search_plugins",
description: "Search for plugins, search query is optional",
args: {
name: "search_query",
isOptional: true,
},
},
{
name: "socket_server",
description:
"Starts local socket server and enables only a single local connection",
options: [
{
name: ["-s", "--stay_alive"],
description:
"Keeps socket server up even after error or disconnects, requires CTRL-C to kill",
},
{
name: ["-c", "--connection_timeout"],
description: "Sets connection established timeout",
args: {
name: "seconds",
description: "Connection timeout in seconds",
},
},
{
name: ["-p", "--port"],
description: "Sets the port on localhost for the socket connection",
args: {
name: "port",
description: "The port on localhost",
},
},
],
},
{
name: "trigger",
description:
"Run a specific lane. Pass the lane name and optionally the platform first",
options: [
{
name: "--disable_runner_upgrades",
description:
"Prevents fastlane from attempting to update FastlaneRunner swift project",
},
{
name: "--swift_server_port",
description:
"Prevents fastlane from attempting to update FastlaneRunner swift project",
args: {
name: "port",
description:
"Set specific port to communicate between fastlane and FastlaneRunner",
},
},
],
args: {
name: "lane",
description: "Specific lane to trigger",
// TODO: Generator to show only available lanes
},
},
{
name: "update_fastlane",
description: "Update fastlane to the latest release",
},
{
name: "update_plugins",
description: "Update all plugin dependencies",
},
],
options: [
{
name: "--platform",
description: "Only show actions available on the given platform",
isPersistent: true,
priority: 49,
args: {
name: "platform",
description: "One of android, ios or mac",
suggestions: ["ios", "android", "mac"],
},
},
{
name: ["-h", "--help"],
description: "Show help for fastlane",
isPersistent: true,
priority: 48,
},
{
name: ["-v", "--version"],
description: "Show version information for fastlane",
},
{
name: "--verbose",
description: "Show version information for fastlane",
isPersistent: true,
priority: 48,
},
{
name: "--capture_output",
description:
"Captures the output of the current run, and generates a markdown issue template",
},
{
name: "--troubleshoot",
description:
"Enables extended verbose mode. Use with caution, as this even includes ALL sensitive data. Cannot be used on CI",
},
{
name: "--env",
description: "Add environment(s) to use with `dotenv`",
},
],
// Only uncomment if fastlane takes an argument
// args: {}
};
export default completionSpec;