add ocs to new config scheme

This commit is contained in:
A.Unger
2021-03-12 16:51:28 +01:00
parent 49f7266d6e
commit e132be0db6
8 changed files with 37 additions and 15 deletions
+3
View File
@@ -22,6 +22,9 @@ func WebDAVCommand(cfg *config.Config) *cli.Command {
Subcommands: []*cli.Command{
command.PrintVersion(cfg.WebDAV),
},
Before: func(ctx *cli.Context) error {
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
origCmd := command.Server(configureWebDAV(cfg))
return handleOriginalAction(c, origCmd)