gspot/main.go
abs3nt affb5fbaba
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
refac
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()
}