@@ -56,9 +56,11 @@ var projectsBranchesRetrieve = cli.Command{
5656func handleProjectsBranchesCreate (ctx context.Context , cmd * cli.Command ) error {
5757 cc := getAPICommandContext (ctx , cmd )
5858 params := stainlessv0.ProjectBranchNewParams {}
59+ if cmd .IsSet ("project" ) {
60+ params .Project = stainlessv0 .String (cmd .Value ("project" ).(string ))
61+ }
5962 res , err := cc .client .Projects .Branches .New (
6063 context .TODO (),
61- cmd .Value ("project" ).(string ),
6264 params ,
6365 option .WithMiddleware (cc .AsMiddleware ()),
6466 option .WithRequestBody ("application/json" , cc .body ),
@@ -73,12 +75,14 @@ func handleProjectsBranchesCreate(ctx context.Context, cmd *cli.Command) error {
7375
7476func handleProjectsBranchesRetrieve (ctx context.Context , cmd * cli.Command ) error {
7577 cc := getAPICommandContext (ctx , cmd )
78+ params := stainlessv0.ProjectBranchGetParams {}
79+ if cmd .IsSet ("project" ) {
80+ params .Project = stainlessv0 .String (cmd .Value ("project" ).(string ))
81+ }
7682 res , err := cc .client .Projects .Branches .Get (
7783 context .TODO (),
7884 cmd .Value ("branch" ).(string ),
79- stainlessv0.ProjectBranchGetParams {
80- Project : cmd .Value ("project" ).(string ),
81- },
85+ params ,
8286 option .WithMiddleware (cc .AsMiddleware ()),
8387 )
8488 if err != nil {
0 commit comments