ketotrack/cmd/cli/main.go
2024-05-12 16:05:05 -04:00

19 lines
300 B
Go

package main
import (
"fmt"
"ketotrack/config"
"ketotrack/data"
"ketotrack/ui/cli"
)
func main() {
appConfig := config.Load()
appCtx, err := data.NewContext(appConfig.DataPath)
if err != nil {
fmt.Printf("Error initializing application context: %s\n", err)
return
}
cli.Run(&appCtx)
}