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
Copy file name to clipboardExpand all lines: pkg/cmd/build.go
+50-26Lines changed: 50 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -228,14 +228,16 @@ var buildsCreate = cli.Command{
228
228
Usage: "Create a build, on top of a project branch, against a given input revision.",
229
229
Flags: []cli.Flag{
230
230
&jsonflag.JSONStringFlag{
231
-
Name: "project",
231
+
Name: "project",
232
+
Usage: "Project name",
232
233
Config: jsonflag.JSONConfig{
233
234
Kind: jsonflag.Body,
234
235
Path: "project",
235
236
},
236
237
},
237
238
&jsonflag.JSONStringFlag{
238
-
Name: "revision",
239
+
Name: "revision",
240
+
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
239
241
Config: jsonflag.JSONConfig{
240
242
Kind: jsonflag.Body,
241
243
Path: "revision",
@@ -260,29 +262,34 @@ var buildsCreate = cli.Command{
260
262
Usage: "Pull the build outputs after completion (only works with --wait)",
261
263
},
262
264
&jsonflag.JSONBoolFlag{
263
-
Name: "allow-empty",
265
+
Name: "allow-empty",
266
+
Usage: "Whether to allow empty commits (no changes). Defaults to false.",
264
267
Config: jsonflag.JSONConfig{
265
268
Kind: jsonflag.Body,
266
269
Path: "allow_empty",
267
270
SetValue: true,
268
271
},
272
+
Value: false,
269
273
},
270
274
&jsonflag.JSONStringFlag{
271
-
Name: "branch",
275
+
Name: "branch",
276
+
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.",
272
277
Config: jsonflag.JSONConfig{
273
278
Kind: jsonflag.Body,
274
279
Path: "branch",
275
280
},
276
281
},
277
282
&jsonflag.JSONStringFlag{
278
-
Name: "commit-message",
283
+
Name: "commit-message",
284
+
Usage: "Optional commit message to use when creating a new commit.",
279
285
Config: jsonflag.JSONConfig{
280
286
Kind: jsonflag.Body,
281
287
Path: "commit_message",
282
288
},
283
289
},
284
290
&jsonflag.JSONStringFlag{
285
-
Name: "targets",
291
+
Name: "targets",
292
+
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
286
293
Config: jsonflag.JSONConfig{
287
294
Kind: jsonflag.Body,
288
295
Path: "targets.#",
@@ -297,7 +304,8 @@ var buildsCreate = cli.Command{
297
304
Hidden: true,
298
305
},
299
306
&jsonflag.JSONStringFlag{
300
-
Name: "+target",
307
+
Name: "+target",
308
+
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
301
309
Config: jsonflag.JSONConfig{
302
310
Kind: jsonflag.Body,
303
311
Path: "targets.-1",
@@ -313,7 +321,8 @@ var buildsRetrieve = cli.Command{
313
321
Usage: "Retrieve a build by its ID.",
314
322
Flags: []cli.Flag{
315
323
&cli.StringFlag{
316
-
Name: "build-id",
324
+
Name: "build-id",
325
+
Usage: "Build ID",
317
326
},
318
327
},
319
328
Action: handleBuildsRetrieve,
@@ -325,35 +334,41 @@ var buildsList = cli.Command{
325
334
Usage: "List user-triggered builds for a given project.",
326
335
Flags: []cli.Flag{
327
336
&jsonflag.JSONStringFlag{
328
-
Name: "project",
337
+
Name: "project",
338
+
Usage: "Project name",
329
339
Config: jsonflag.JSONConfig{
330
340
Kind: jsonflag.Query,
331
341
Path: "project",
332
342
},
333
343
},
334
344
&jsonflag.JSONStringFlag{
335
-
Name: "branch",
345
+
Name: "branch",
346
+
Usage: "Branch name",
336
347
Config: jsonflag.JSONConfig{
337
348
Kind: jsonflag.Query,
338
349
Path: "branch",
339
350
},
340
351
},
341
352
&jsonflag.JSONStringFlag{
342
-
Name: "cursor",
353
+
Name: "cursor",
354
+
Usage: "Pagination cursor from a previous response.",
343
355
Config: jsonflag.JSONConfig{
344
356
Kind: jsonflag.Query,
345
357
Path: "cursor",
346
358
},
347
359
},
348
360
&jsonflag.JSONFloatFlag{
349
-
Name: "limit",
361
+
Name: "limit",
362
+
Usage: "Maximum number of builds to return, defaults to 10 (maximum: 100).",
350
363
Config: jsonflag.JSONConfig{
351
364
Kind: jsonflag.Query,
352
365
Path: "limit",
353
366
},
367
+
Value: 10,
354
368
},
355
369
&jsonflag.JSONStringFlag{
356
-
Name: "revision",
370
+
Name: "revision",
371
+
Usage: "A config commit SHA used for the build",
357
372
Config: jsonflag.JSONConfig{
358
373
Kind: jsonflag.Query,
359
374
Path: "revision",
@@ -369,63 +384,72 @@ var buildsCompare = cli.Command{
369
384
Usage: "Create two builds whose outputs can be directly compared with each other.",
370
385
Flags: []cli.Flag{
371
386
&jsonflag.JSONStringFlag{
372
-
Name: "base.branch",
387
+
Name: "base.branch",
388
+
Usage: "Branch to use. When using a branch name as revision, this must match or be\nomitted.",
373
389
Config: jsonflag.JSONConfig{
374
390
Kind: jsonflag.Body,
375
391
Path: "base.branch",
376
392
},
377
393
},
378
394
&jsonflag.JSONStringFlag{
379
-
Name: "base.revision",
395
+
Name: "base.revision",
396
+
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
380
397
Config: jsonflag.JSONConfig{
381
398
Kind: jsonflag.Body,
382
399
Path: "base.revision",
383
400
},
384
401
},
385
402
&jsonflag.JSONStringFlag{
386
-
Name: "base.commit_message",
403
+
Name: "base.commit_message",
404
+
Usage: "Optional commit message to use when creating a new commit.",
387
405
Config: jsonflag.JSONConfig{
388
406
Kind: jsonflag.Body,
389
407
Path: "base.commit_message",
390
408
},
391
409
},
392
410
&jsonflag.JSONStringFlag{
393
-
Name: "head.branch",
411
+
Name: "head.branch",
412
+
Usage: "Branch to use. When using a branch name as revision, this must match or be\nomitted.",
394
413
Config: jsonflag.JSONConfig{
395
414
Kind: jsonflag.Body,
396
415
Path: "head.branch",
397
416
},
398
417
},
399
418
&jsonflag.JSONStringFlag{
400
-
Name: "head.revision",
419
+
Name: "head.revision",
420
+
Usage: `A branch name, commit SHA, or merge command in the format "base..head"`,
401
421
Config: jsonflag.JSONConfig{
402
422
Kind: jsonflag.Body,
403
423
Path: "head.revision",
404
424
},
405
425
},
406
426
&jsonflag.JSONStringFlag{
407
-
Name: "head.commit_message",
427
+
Name: "head.commit_message",
428
+
Usage: "Optional commit message to use when creating a new commit.",
408
429
Config: jsonflag.JSONConfig{
409
430
Kind: jsonflag.Body,
410
431
Path: "head.commit_message",
411
432
},
412
433
},
413
434
&jsonflag.JSONStringFlag{
414
-
Name: "project",
435
+
Name: "project",
436
+
Usage: "Project name",
415
437
Config: jsonflag.JSONConfig{
416
438
Kind: jsonflag.Body,
417
439
Path: "project",
418
440
},
419
441
},
420
442
&jsonflag.JSONStringFlag{
421
-
Name: "targets",
443
+
Name: "targets",
444
+
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
422
445
Config: jsonflag.JSONConfig{
423
446
Kind: jsonflag.Body,
424
447
Path: "targets.#",
425
448
},
426
449
},
427
450
&jsonflag.JSONStringFlag{
428
-
Name: "+target",
451
+
Name: "+target",
452
+
Usage: "Optional list of SDK targets to build. If not specified, all configured\ntargets will be built.",
429
453
Config: jsonflag.JSONConfig{
430
454
Kind: jsonflag.Body,
431
455
Path: "targets.-1",
@@ -436,7 +460,7 @@ var buildsCompare = cli.Command{
0 commit comments