You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -100,22 +99,6 @@ var buildsCreate = cli.Command{
100
99
Name: "create",
101
100
Usage: "Create a build, on top of a project branch, against a given input revision.",
102
101
Flags: []cli.Flag{
103
-
&jsonflag.JSONStringFlag{
104
-
Name: "project",
105
-
Usage: "Project name",
106
-
Config: jsonflag.JSONConfig{
107
-
Kind: jsonflag.Body,
108
-
Path: "project",
109
-
},
110
-
},
111
-
&jsonflag.JSONStringFlag{
112
-
Name: "revision",
113
-
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
114
-
Config: jsonflag.JSONConfig{
115
-
Kind: jsonflag.Body,
116
-
Path: "revision",
117
-
},
118
-
},
119
102
&cli.StringFlag{
120
103
Name: "openapi-spec",
121
104
Aliases: []string{"oas"},
@@ -134,39 +117,21 @@ var buildsCreate = cli.Command{
134
117
Name: "pull",
135
118
Usage: "Pull the build outputs after completion (only works with --wait)",
136
119
},
137
-
&jsonflag.JSONBoolFlag{
120
+
&cli.BoolFlag{
138
121
Name: "allow-empty",
139
122
Usage: "Whether to allow empty commits (no changes). Defaults to false.",
140
-
Config: jsonflag.JSONConfig{
141
-
Kind: jsonflag.Body,
142
-
Path: "allow_empty",
143
-
SetValue: true,
144
-
},
145
-
Value: false,
146
123
},
147
-
&jsonflag.JSONStringFlag{
124
+
&cli.StringFlag{
148
125
Name: "branch",
149
126
Usage: "The project branch to use for the build. If not specified, the\nbranch is inferred from the `revision`, and will 400 when that\nis not possible.",
150
-
Config: jsonflag.JSONConfig{
151
-
Kind: jsonflag.Body,
152
-
Path: "branch",
153
-
},
154
127
},
155
-
&jsonflag.JSONStringFlag{
128
+
&cli.StringFlag{
156
129
Name: "commit-message",
157
130
Usage: "Optional commit message to use when creating a new commit.",
158
-
Config: jsonflag.JSONConfig{
159
-
Kind: jsonflag.Body,
160
-
Path: "commit_message",
161
-
},
162
131
},
163
-
&jsonflag.JSONStringFlag{
164
-
Name: "targets",
132
+
&cli.StringSliceFlag{
133
+
Name: "target",
165
134
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
166
-
Config: jsonflag.JSONConfig{
167
-
Kind: jsonflag.Body,
168
-
Path: "targets.#",
169
-
},
170
135
},
171
136
&jsonflag.JSONStringFlag{
172
137
Name: "target",
@@ -176,13 +141,7 @@ var buildsCreate = cli.Command{
176
141
},
177
142
Hidden: true,
178
143
},
179
-
&jsonflag.JSONStringFlag{
180
-
Name: "+target",
181
-
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
182
-
Config: jsonflag.JSONConfig{
183
-
Kind: jsonflag.Body,
184
-
Path: "targets.-1",
185
-
},
144
+
&jsonflag.JSONStringFlag{,
186
145
},
187
146
},
188
147
Action: handleBuildsCreate,
@@ -202,139 +161,21 @@ var buildsRetrieve = cli.Command{
202
161
HideHelpCommand: true,
203
162
}
204
163
205
-
varbuildsList= cli.Command{
206
-
Name: "list",
207
-
Usage: "List user-triggered builds for a given project.",
208
-
Flags: []cli.Flag{
209
-
&jsonflag.JSONStringFlag{
210
-
Name: "project",
211
-
Usage: "Project name",
212
-
Config: jsonflag.JSONConfig{
213
-
Kind: jsonflag.Query,
214
-
Path: "project",
215
-
},
216
-
},
217
-
&jsonflag.JSONStringFlag{
218
-
Name: "branch",
219
-
Usage: "Branch name",
220
-
Config: jsonflag.JSONConfig{
221
-
Kind: jsonflag.Query,
222
-
Path: "branch",
223
-
},
224
-
},
225
-
&jsonflag.JSONStringFlag{
226
-
Name: "cursor",
227
-
Usage: "Pagination cursor from a previous response.",
228
-
Config: jsonflag.JSONConfig{
229
-
Kind: jsonflag.Query,
230
-
Path: "cursor",
231
-
},
232
-
},
233
-
&jsonflag.JSONFloatFlag{
234
-
Name: "limit",
235
-
Usage: "Maximum number of builds to return, defaults to 10 (maximum: 100).",
236
-
Config: jsonflag.JSONConfig{
237
-
Kind: jsonflag.Query,
238
-
Path: "limit",
239
-
},
240
-
Value: 10,
241
-
},
242
-
&jsonflag.JSONStringFlag{
243
-
Name: "revision",
244
-
Usage: "A config commit SHA used for the build",
245
-
Config: jsonflag.JSONConfig{
246
-
Kind: jsonflag.Query,
247
-
Path: "revision",
248
-
},
249
-
},
250
-
},
251
-
Action: handleBuildsList,
252
-
HideHelpCommand: true,
253
-
}
254
-
255
164
varbuildsCompare= cli.Command{
256
165
Name: "compare",
257
166
Usage: "Create two builds whose outputs can be directly compared with each other.",
258
167
Flags: []cli.Flag{
259
-
&jsonflag.JSONStringFlag{
260
-
Name: "base.branch",
261
-
Usage: "Branch to use. When using a branch name as revision, this must match or be\nomitted.",
262
-
Config: jsonflag.JSONConfig{
263
-
Kind: jsonflag.Body,
264
-
Path: "base.branch",
265
-
},
266
-
},
267
-
&jsonflag.JSONStringFlag{
268
-
Name: "base.revision",
269
-
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
270
-
Config: jsonflag.JSONConfig{
271
-
Kind: jsonflag.Body,
272
-
Path: "base.revision",
273
-
},
274
-
},
275
-
&jsonflag.JSONStringFlag{
276
-
Name: "base.commit_message",
277
-
Usage: "Optional commit message to use when creating a new commit.",
278
-
Config: jsonflag.JSONConfig{
279
-
Kind: jsonflag.Body,
280
-
Path: "base.commit_message",
281
-
},
282
-
},
283
-
&jsonflag.JSONStringFlag{
284
-
Name: "head.branch",
285
-
Usage: "Branch to use. When using a branch name as revision, this must match or be\nomitted.",
286
-
Config: jsonflag.JSONConfig{
287
-
Kind: jsonflag.Body,
288
-
Path: "head.branch",
289
-
},
290
-
},
291
-
&jsonflag.JSONStringFlag{
292
-
Name: "head.revision",
293
-
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
294
-
Config: jsonflag.JSONConfig{
295
-
Kind: jsonflag.Body,
296
-
Path: "head.revision",
297
-
},
298
-
},
299
-
&jsonflag.JSONStringFlag{
300
-
Name: "head.commit_message",
301
-
Usage: "Optional commit message to use when creating a new commit.",
302
-
Config: jsonflag.JSONConfig{
303
-
Kind: jsonflag.Body,
304
-
Path: "head.commit_message",
305
-
},
306
-
},
307
-
&jsonflag.JSONStringFlag{
308
-
Name: "project",
309
-
Usage: "Project name",
310
-
Config: jsonflag.JSONConfig{
311
-
Kind: jsonflag.Body,
312
-
Path: "project",
313
-
},
314
-
},
315
-
&jsonflag.JSONStringFlag{
316
-
Name: "targets",
317
-
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
318
-
Config: jsonflag.JSONConfig{
319
-
Kind: jsonflag.Body,
320
-
Path: "targets.#",
321
-
},
322
-
},
323
-
&jsonflag.JSONStringFlag{
324
-
Name: "+target",
168
+
&cli.StringSliceFlag{
169
+
Name: "target",
325
170
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
0 commit comments