Call urfave before hook for konnectd command

This commit is contained in:
Ilja Neumann
2020-02-26 18:43:59 +01:00
committed by Alex Unger
parent c93234b92a
commit 250d6ecfbe
+7 -5
View File
@@ -18,12 +18,14 @@ func KonnectdCommand(cfg *config.Config) *cli.Command {
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Konnectd),
Action: func(c *cli.Context) error {
scfg := configureKonnectd(cfg)
serverConfig := configureKonnectd(cfg)
serverCommand := command.Server(serverConfig)
return cli.HandleAction(
command.Server(scfg).Action,
c,
)
if err := serverCommand.Before(c); err != nil {
return err
}
return cli.HandleAction(serverCommand.Action, c)
},
}
}