docs: remove depreceated call to Run and replace with RunContext (#885)

pull/887/head
Matt Robinson 2025-01-06 13:04:11 +00:00 committed by GitHub
parent 3c91df140a
commit 779024deaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
package main package main
import ( import (
"context"
"flag" "flag"
"log" "log"
"os" "os"
@ -43,7 +44,8 @@ func main() {
arguments = append(arguments, args[3:]...) arguments = append(arguments, args[3:]...)
} }
if err := goose.Run(command, db, *dir, arguments...); err != nil { ctx := context.Background()
if err := goose.RunContext(ctx, command, db, *dir, arguments...); err != nil {
log.Fatalf("goose %v: %v", command, err) log.Fatalf("goose %v: %v", command, err)
} }
} }