TheMathemagicians/sevenkeys/main.go

26 lines
378 B
Go
Raw Normal View History

2024-05-28 14:29:13 +00:00
package main
import (
2024-09-12 12:29:43 +00:00
"os"
2024-06-10 15:34:16 +00:00
"sevenkeys/cli"
2024-06-10 12:32:45 +00:00
"sevenkeys/database"
2024-06-10 15:34:16 +00:00
"sevenkeys/figlet"
2024-05-28 14:29:13 +00:00
)
func main() {
2024-09-12 12:29:43 +00:00
var profile string
if len(os.Args) < 2 {
profile = "production"
} else {
profile = os.Args[1]
}
db := database.GetDatabaseFromConfig("config." + profile + ".json")
2024-06-10 12:32:45 +00:00
2024-09-05 11:22:02 +00:00
figlet.ReadFigletFonts()
2024-06-10 15:34:16 +00:00
cli.ShowSplashScreen()
2024-06-10 12:32:45 +00:00
2024-06-10 15:34:16 +00:00
cli.RunUpdateCheck(db)
2024-05-28 14:29:13 +00:00
2024-06-11 09:57:02 +00:00
cli.MainCliLoop(db)
2024-05-28 14:29:13 +00:00
}