diff --git a/cmd/wit-bindgen-go/cmd/print/print.go b/cmd/wit-bindgen-go/cmd/print/print.go index b7735032..ea96b009 100644 --- a/cmd/wit-bindgen-go/cmd/print/print.go +++ b/cmd/wit-bindgen-go/cmd/print/print.go @@ -1,6 +1,7 @@ package print import ( + "context" "fmt" "github.com/ydnar/wasm-tools-go/internal/witcli" @@ -16,8 +17,8 @@ var Command = &cli.Command{ Action: action, } -func action(ctx *cli.Context) error { - res, err := witcli.LoadOne(ctx.Args().Slice()...) +func action(ctx context.Context, cmd *cli.Command) error { + res, err := witcli.LoadOne(cmd.Args().Slice()...) if err != nil { return err } diff --git a/cmd/wit-bindgen-go/cmd/syntax/syntax.go b/cmd/wit-bindgen-go/cmd/syntax/syntax.go index c34a1625..8397adb0 100644 --- a/cmd/wit-bindgen-go/cmd/syntax/syntax.go +++ b/cmd/wit-bindgen-go/cmd/syntax/syntax.go @@ -1,6 +1,7 @@ package syntax import ( + "context" "fmt" "github.com/urfave/cli/v3" @@ -14,8 +15,8 @@ var Command = &cli.Command{ Action: action, } -func action(ctx *cli.Context) error { - res, err := witcli.LoadOne(ctx.Args().Slice()...) +func action(ctx context.Context, cmd *cli.Command) error { + res, err := witcli.LoadOne(cmd.Args().Slice()...) if err != nil { return err }