mirror of https://github.com/pressly/goose.git
add to example as well
parent
3c2c9d9076
commit
a4a53bdf99
|
@ -33,6 +33,14 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO clean up arg/flag parsing flow
|
||||||
|
if args[0] == "fix" {
|
||||||
|
if err := goose.Run("fix", nil, *dir); err != nil {
|
||||||
|
log.Fatalf("goose run: %v", err)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if len(args) < 3 {
|
if len(args) < 3 {
|
||||||
flags.Usage()
|
flags.Usage()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue