gspot/main.go

27 lines
443 B
Go
Raw Normal View History

2024-02-18 06:57:47 +00:00
package main
import (
"go.uber.org/fx"
"git.asdf.cafe/abs3nt/gospt-ng/src/app"
2024-02-18 19:48:33 +00:00
"git.asdf.cafe/abs3nt/gospt-ng/src/components/cache"
2024-02-18 09:30:19 +00:00
"git.asdf.cafe/abs3nt/gospt-ng/src/components/cli"
2024-02-18 06:57:47 +00:00
"git.asdf.cafe/abs3nt/gospt-ng/src/components/commands"
)
func main() {
2024-02-18 09:30:19 +00:00
var s fx.Shutdowner
app := fx.New(
fx.Populate(&s),
2024-02-18 06:57:47 +00:00
app.Config,
2024-02-18 09:30:19 +00:00
fx.Provide(
2024-02-18 19:48:33 +00:00
cache.NewCache,
2024-02-18 06:57:47 +00:00
commands.NewCommander,
),
2024-02-18 09:30:19 +00:00
fx.Invoke(
cli.Run,
),
)
app.Run()
2024-02-18 06:57:47 +00:00
}