mirror of https://github.com/pressly/goose.git
docs: remove depreceated call to Run and replace with RunContext (#885)
parent
3c91df140a
commit
779024deaf
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue