func Options(args []string) { if len(args) > 1 { if args[1] == "production" { connector.SetEnv("production") } } }
func main() { kingpin.Parse() m := Migrin{} if *p { connector.SetEnv("production") } else { connector.SetEnv("development") } switch *action { case "new": m.new() case "init": m.init() case "up": m.up() case "down": m.down() } }
func init() { connector.SetEnv("development") }