3
0

Fix InitService under monolith build

This commit is contained in:
Denis Arh
2019-07-14 14:22:11 +02:00
parent 09aeaac5d7
commit 30400754ef
+6
View File
@@ -30,6 +30,12 @@ func Configure() *cli.Config {
return &cli.Config{
ServiceName: "",
InitServices: func(ctx context.Context, c *cli.Config) {
cmp.InitServices(ctx, cmp)
msg.InitServices(ctx, cmp)
sys.InitServices(ctx, cmp)
},
RootCommandDBSetup: cli.Runners{
func(ctx context.Context, cmd *cobra.Command, c *cli.Config) (err error) {
cli.HandleError(cmp.RootCommandDBSetup.Run(ctx, cmd, cmp))