use ParseAppsFlag from Phoenix flagset to deal with the list of apps

This commit is contained in:
A.Unger
2020-01-15 11:27:35 +01:00
parent 4103c43f11
commit 9b936b5271
+4
View File
@@ -16,6 +16,10 @@ func PhoenixCommand(cfg *config.Config) cli.Command {
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Phoenix),
Action: func(c *cli.Context) error {
if c.String("web-config-apps") != "" {
cfg.Phoenix.Phoenix.Config.Apps = flagset.ParseAppsFlag(c.String("web-config-apps"))
}
scfg := configurePhoenix(cfg)
return cli.HandleAction(