save allocation

This commit is contained in:
A.Unger
2020-03-17 14:34:32 +01:00
parent 83570eccde
commit 40a27c9e93

View File

@@ -35,7 +35,10 @@ func Execute() error {
return ParseConfig(c, cfg)
},
Commands: GetCommands(cfg),
Commands: []*cli.Command{
Server(cfg),
Health(cfg),
},
}
cli.HelpFlag = &cli.BoolFlag{
@@ -51,14 +54,6 @@ func Execute() error {
return app.Run(os.Args)
}
// GetCommands undocummented
func GetCommands(cfg *config.Config) []*cli.Command {
return []*cli.Command{
Server(cfg),
Health(cfg),
}
}
// NewLogger initializes a service-specific logger instance.
func NewLogger(cfg *config.Config) log.Logger {
return log.NewLogger(