update config parsing for accounts and proxy

This commit is contained in:
A.Unger
2021-03-12 13:47:52 +01:00
parent 3901680fba
commit c1f489a258
5 changed files with 115 additions and 62 deletions
+3
View File
@@ -22,6 +22,9 @@ func ProxyCommand(cfg *config.Config) *cli.Command {
Subcommands: []*cli.Command{
command.PrintVersion(cfg.Proxy),
},
Before: func(ctx *cli.Context) error {
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
origCmd := command.Server(configureProxy(cfg))
return handleOriginalAction(c, origCmd)