mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-25 01:38:18 -04:00
move config parsing in separate package for each service
This commit is contained in:
@@ -2,12 +2,13 @@ package command
|
||||
|
||||
import (
|
||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/config/parser"
|
||||
"github.com/owncloud/ocis/ocis-pkg/shared"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
func ParseStorageCommon(ctx *cli.Context, cfg *config.Config) error {
|
||||
if err := ParseConfig(ctx, cfg); err != nil {
|
||||
if err := parser.ParseConfig(cfg); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user