Beispiel #1
0
func Options(args []string) {
	if len(args) > 1 {
		if args[1] == "production" {
			connector.SetEnv("production")
		}
	}
}
Beispiel #2
0
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()
	}
}
Beispiel #3
0
func init() {
	connector.SetEnv("development")
}