mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-02 11:37:13 -04:00
move config parsing in separate package for each service
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/oklog/run"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config/parser"
|
||||
"github.com/owncloud/ocis/accounts/pkg/logging"
|
||||
"github.com/owncloud/ocis/accounts/pkg/metrics"
|
||||
"github.com/owncloud/ocis/accounts/pkg/server/debug"
|
||||
@@ -22,7 +23,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
Usage: "Start ocis accounts service",
|
||||
Description: "uses an LDAP server as the storage backend",
|
||||
Before: func(ctx *cli.Context) error {
|
||||
if err := ParseConfig(ctx, cfg); err != nil {
|
||||
if err := parser.ParseConfig(cfg); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user