WIP - replace flags in storage commands

This commit is contained in:
A.Unger
2021-11-15 16:58:22 +01:00
parent fde5e35496
commit cfbe37de61
17 changed files with 811 additions and 354 deletions
+2 -3
View File
@@ -16,7 +16,6 @@ import (
"github.com/oklog/run"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/owncloud/ocis/storage/pkg/config"
"github.com/owncloud/ocis/storage/pkg/flagset"
"github.com/owncloud/ocis/storage/pkg/server/debug"
"github.com/thejerf/suture/v4"
"github.com/urfave/cli/v2"
@@ -27,11 +26,11 @@ func Sharing(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "sharing",
Usage: "Start sharing service",
Flags: flagset.SharingWithConfig(cfg),
//Flags: flagset.SharingWithConfig(cfg),
Before: func(c *cli.Context) error {
cfg.Reva.Sharing.Services = c.StringSlice("service")
return nil
return ParseConfig(c, cfg, "storage-sharing")
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)