@@ -134,7 +134,7 @@ var projectsBranchesRebase = cli.Command{
134134 HideHelpCommand : true ,
135135}
136136
137- func handleProjectsBranchesCreate (_ context.Context , cmd * cli.Command ) error {
137+ func handleProjectsBranchesCreate (ctx context.Context , cmd * cli.Command ) error {
138138 cc := getAPICommandContext (cmd )
139139 unusedArgs := cmd .Args ().Slice ()
140140 if len (unusedArgs ) > 0 {
@@ -146,7 +146,7 @@ func handleProjectsBranchesCreate(_ context.Context, cmd *cli.Command) error {
146146 }
147147 var res []byte
148148 _ , err := cc .client .Projects .Branches .New (
149- context . TODO () ,
149+ ctx ,
150150 params ,
151151 option .WithMiddleware (cc .AsMiddleware ()),
152152 option .WithResponseBodyInto (& res ),
@@ -161,7 +161,7 @@ func handleProjectsBranchesCreate(_ context.Context, cmd *cli.Command) error {
161161 return ShowJSON ("projects:branches create" , json , format , transform )
162162}
163163
164- func handleProjectsBranchesRetrieve (_ context.Context , cmd * cli.Command ) error {
164+ func handleProjectsBranchesRetrieve (ctx context.Context , cmd * cli.Command ) error {
165165 cc := getAPICommandContext (cmd )
166166 unusedArgs := cmd .Args ().Slice ()
167167 if ! cmd .IsSet ("branch" ) && len (unusedArgs ) > 0 {
@@ -177,7 +177,7 @@ func handleProjectsBranchesRetrieve(_ context.Context, cmd *cli.Command) error {
177177 }
178178 var res []byte
179179 _ , err := cc .client .Projects .Branches .Get (
180- context . TODO () ,
180+ ctx ,
181181 cmd .Value ("branch" ).(string ),
182182 params ,
183183 option .WithMiddleware (cc .AsMiddleware ()),
@@ -193,7 +193,7 @@ func handleProjectsBranchesRetrieve(_ context.Context, cmd *cli.Command) error {
193193 return ShowJSON ("projects:branches retrieve" , json , format , transform )
194194}
195195
196- func handleProjectsBranchesList (_ context.Context , cmd * cli.Command ) error {
196+ func handleProjectsBranchesList (ctx context.Context , cmd * cli.Command ) error {
197197 cc := getAPICommandContext (cmd )
198198 unusedArgs := cmd .Args ().Slice ()
199199 if len (unusedArgs ) > 0 {
@@ -205,7 +205,7 @@ func handleProjectsBranchesList(_ context.Context, cmd *cli.Command) error {
205205 }
206206 var res []byte
207207 _ , err := cc .client .Projects .Branches .List (
208- context . TODO () ,
208+ ctx ,
209209 params ,
210210 option .WithMiddleware (cc .AsMiddleware ()),
211211 option .WithResponseBodyInto (& res ),
@@ -220,7 +220,7 @@ func handleProjectsBranchesList(_ context.Context, cmd *cli.Command) error {
220220 return ShowJSON ("projects:branches list" , json , format , transform )
221221}
222222
223- func handleProjectsBranchesDelete (_ context.Context , cmd * cli.Command ) error {
223+ func handleProjectsBranchesDelete (ctx context.Context , cmd * cli.Command ) error {
224224 cc := getAPICommandContext (cmd )
225225 unusedArgs := cmd .Args ().Slice ()
226226 if ! cmd .IsSet ("branch" ) && len (unusedArgs ) > 0 {
@@ -236,7 +236,7 @@ func handleProjectsBranchesDelete(_ context.Context, cmd *cli.Command) error {
236236 }
237237 var res []byte
238238 _ , err := cc .client .Projects .Branches .Delete (
239- context . TODO () ,
239+ ctx ,
240240 cmd .Value ("branch" ).(string ),
241241 params ,
242242 option .WithMiddleware (cc .AsMiddleware ()),
@@ -252,7 +252,7 @@ func handleProjectsBranchesDelete(_ context.Context, cmd *cli.Command) error {
252252 return ShowJSON ("projects:branches delete" , json , format , transform )
253253}
254254
255- func handleProjectsBranchesRebase (_ context.Context , cmd * cli.Command ) error {
255+ func handleProjectsBranchesRebase (ctx context.Context , cmd * cli.Command ) error {
256256 cc := getAPICommandContext (cmd )
257257 unusedArgs := cmd .Args ().Slice ()
258258 if ! cmd .IsSet ("branch" ) && len (unusedArgs ) > 0 {
@@ -268,7 +268,7 @@ func handleProjectsBranchesRebase(_ context.Context, cmd *cli.Command) error {
268268 }
269269 var res []byte
270270 _ , err := cc .client .Projects .Branches .Rebase (
271- context . TODO () ,
271+ ctx ,
272272 cmd .Value ("branch" ).(string ),
273273 params ,
274274 option .WithMiddleware (cc .AsMiddleware ()),
0 commit comments