mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-29 02:10:58 +08:00
ea22c2f0a7
Replace the samber/do runtime container with explicit constructor dependencies and generated Wire graphs for ace and cli. Keep CLI application loading isolated and verify generated files in CI.
26 lines
553 B
Go
26 lines
553 B
Go
//go:build wireinject
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/google/wire"
|
|
|
|
"github.com/acepanel/panel/v3/internal/app"
|
|
"github.com/acepanel/panel/v3/internal/biz"
|
|
"github.com/acepanel/panel/v3/internal/bootstrap"
|
|
"github.com/acepanel/panel/v3/internal/command"
|
|
"github.com/acepanel/panel/v3/internal/data"
|
|
"github.com/acepanel/panel/v3/internal/service"
|
|
)
|
|
|
|
func initCli() (*app.Cli, func(), error) {
|
|
panic(wire.Build(
|
|
bootstrap.ProviderSet,
|
|
biz.ProviderSet,
|
|
data.ProviderSet,
|
|
service.ProviderSet,
|
|
command.ProviderSet,
|
|
app.NewCli,
|
|
))
|
|
}
|