3
0

Orchestrate ApiServerPreRun runners on monolith

This commit is contained in:
Denis Arh
2019-07-09 16:28:21 +02:00
parent 879dfd6709
commit 690f23b6da
+9
View File
@@ -45,6 +45,15 @@ func Configure() *cli.Config {
},
},
ApiServerPreRun: cli.Runners{
func(ctx context.Context, cmd *cobra.Command, c *cli.Config) (err error) {
cli.HandleError(cmp.ApiServerPreRun.Run(ctx, cmd, cmp))
cli.HandleError(msg.ApiServerPreRun.Run(ctx, cmd, msg))
cli.HandleError(sys.ApiServerPreRun.Run(ctx, cmd, sys))
return
},
},
ApiServerRoutes: cli.Mounters{
func(r chi.Router) {
r.Route("/compose", cmp.ApiServerRoutes.MountRoutes)