27 lines
443 B
Go
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()
|
|
}
|