add glauth to new config scheme

This commit is contained in:
A.Unger
2021-03-12 14:13:06 +01:00
parent f0c1d59672
commit db1b09c873
2 changed files with 33 additions and 29 deletions
+3
View File
@@ -17,6 +17,9 @@ func GLAuthCommand(cfg *config.Config) *cli.Command {
Usage: "Start glauth server",
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.GLAuth),
Before: func(ctx *cli.Context) error {
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
origCmd := command.Server(configureGLAuth(cfg))
return handleOriginalAction(c, origCmd)