mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-21 22:04:41 -04:00
update all sub commands
This commit is contained in:
7 files changed
+39
-54
No files matched your search
@@ -16,15 +16,14 @@ func ProxyCommand(cfg *config.Config) *cli.Command {
|
||||
Usage: "Start proxy server",
|
||||
Category: "Extensions",
|
||||
Flags: flagset.ServerWithConfig(cfg.Proxy),
|
||||
Action: func(c *cli.Context) error {
|
||||
serverConfig := configureProxy(cfg)
|
||||
serverCommand := command.Server(serverConfig)
|
||||
Action: func(ctx *cli.Context) error {
|
||||
proxyCommand := command.Server(configureProxy(cfg))
|
||||
|
||||
if err := serverCommand.Before(c); err != nil {
|
||||
if err := proxyCommand.Before(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return cli.HandleAction(serverCommand.Action, c)
|
||||
return cli.HandleAction(proxyCommand.Action, ctx)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user