fathom/ana.go

26 lines
411 B
Go
Raw Normal View History

package main
import (
2016-12-11 13:50:01 +00:00
"log"
2016-12-11 13:50:01 +00:00
"github.com/dannyvankooten/ana/commands"
"github.com/dannyvankooten/ana/db"
"github.com/joho/godotenv"
)
func main() {
2016-12-11 13:50:01 +00:00
// load .env file
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
2016-11-22 21:33:50 +00:00
2016-12-11 13:50:01 +00:00
// setup database connection
conn := db.SetupDatabaseConnection()
defer conn.Close()
2016-11-22 19:57:16 +00:00
2016-12-11 13:50:01 +00:00
// parse & run cli commands
commands.Parse()
commands.Run()
}