fix(cmd/api): use CLI context for SDK generation
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
ef641c7547
commit
1fb55c9515
1 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"iter"
|
||||
"os"
|
||||
|
|
@ -86,7 +85,7 @@ func addSDKCommand(parent *cli.Command) {
|
|||
// Generate for each language.
|
||||
for _, l := range languages {
|
||||
fmt.Fprintf(os.Stderr, "Generating %s SDK...\n", l)
|
||||
if err := gen.Generate(context.Background(), l); err != nil {
|
||||
if err := gen.Generate(cli.Context(), l); err != nil {
|
||||
return coreerr.E("sdk.Generate", "generate "+l, err)
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, " Done: %s/%s/\n", output, l)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue