update all sub commands

This commit is contained in:
A.Unger
2020-03-17 15:01:09 +01:00
parent 076383e79d
commit 74fd634a2b
7 changed files with 39 additions and 54 deletions
+5 -6
View File
@@ -23,17 +23,16 @@ func PhoenixCommand(cfg *config.Config) *cli.Command {
}
cfg.Phoenix.Phoenix.Config.Apps = c.StringSlice("web-config-app")
return nil
},
Action: func(c *cli.Context) error {
phoenixCommand := command.Server(configurePhoenix(cfg))
scfg := configurePhoenix(cfg)
if err := phoenixCommand.Before(c); err != nil {
return err
}
return cli.HandleAction(
command.Server(scfg).Action,
c,
)
return cli.HandleAction(phoenixCommand.Action, c)
},
}
}