gospt/main.go
2024-02-18 18:51:25 -08:00

27 lines
431 B
Go

package main
import (
"go.uber.org/fx"
"git.asdf.cafe/abs3nt/gspot/src/app"
"git.asdf.cafe/abs3nt/gspot/src/components/cache"
"git.asdf.cafe/abs3nt/gspot/src/components/cli"
"git.asdf.cafe/abs3nt/gspot/src/components/commands"
)
func main() {
var s fx.Shutdowner
app := fx.New(
fx.Populate(&s),
app.Config,
fx.Provide(
cache.NewCache,
commands.NewCommander,
),
fx.Invoke(
cli.Run,
),
)
app.Run()
}