@@ -236,13 +236,12 @@ var buildsCompare = cli.Command{
236236
237237func handleBuildsCreate (ctx context.Context , cmd * cli.Command ) error {
238238 cc := getAPICommandContext (ctx , cmd )
239-
240239 // Log to stderr that we're creating a build (using white text)
241240 fmt .Fprintf (os .Stderr , "Creating build...\n " )
242-
241+ params := stainlessv0. BuildNewParams {}
243242 res , err := cc .client .Builds .New (
244243 context .TODO (),
245- stainlessv0. BuildNewParams {} ,
244+ params ,
246245 option .WithMiddleware (cc .AsMiddleware ()),
247246 option .WithRequestBody ("application/json" , cc .body ),
248247 )
@@ -338,7 +337,6 @@ func handleBuildsCreate(ctx context.Context, cmd *cli.Command) error {
338337
339338func handleBuildsRetrieve (ctx context.Context , cmd * cli.Command ) error {
340339 cc := getAPICommandContext (ctx , cmd )
341-
342340 res , err := cc .client .Builds .Get (
343341 context .TODO (),
344342 cmd .Value ("build-id" ).(string ),
@@ -483,10 +481,10 @@ func pullOutput(output, url, ref, targetDir string) error {
483481
484482func handleBuildsList (ctx context.Context , cmd * cli.Command ) error {
485483 cc := getAPICommandContext (ctx , cmd )
486-
484+ params := stainlessv0. BuildListParams {}
487485 res , err := cc .client .Builds .List (
488486 context .TODO (),
489- stainlessv0. BuildListParams {} ,
487+ params ,
490488 option .WithMiddleware (cc .AsMiddleware ()),
491489 )
492490 if err != nil {
@@ -499,10 +497,10 @@ func handleBuildsList(ctx context.Context, cmd *cli.Command) error {
499497
500498func handleBuildsCompare (ctx context.Context , cmd * cli.Command ) error {
501499 cc := getAPICommandContext (ctx , cmd )
502-
500+ params := stainlessv0. BuildCompareParams {}
503501 res , err := cc .client .Builds .Compare (
504502 context .TODO (),
505- stainlessv0. BuildCompareParams {} ,
503+ params ,
506504 option .WithMiddleware (cc .AsMiddleware ()),
507505 option .WithRequestBody ("application/json" , cc .body ),
508506 )
0 commit comments