gspot/main.go
abs3nt aaa467eee0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
cache
2024-02-18 11:48:33 -08:00

27 lines
443 B
Go

package main
import (
"go.uber.org/fx"
"git.asdf.cafe/abs3nt/gospt-ng/src/app"
"git.asdf.cafe/abs3nt/gospt-ng/src/components/cache"
"git.asdf.cafe/abs3nt/gospt-ng/src/components/cli"
"git.asdf.cafe/abs3nt/gospt-ng/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()
}