normalize graph-explorer

This commit is contained in:
A.Unger
2021-11-08 12:08:35 +01:00
parent 4c9e4713cf
commit 22601de351
6 changed files with 16 additions and 60 deletions
-5
View File
@@ -64,14 +64,9 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
if err != nil {
return err
}
// load all env variables relevant to the config in the current context.
conf.LoadOSEnv(config.GetEnv(), false)
bindings := config.StructMappings(cfg)
return ociscfg.BindEnv(conf, bindings)
return nil
}
// SutureService allows for the graph command to be embedded and supervised by a suture supervisor tree.
-8
View File
@@ -9,14 +9,6 @@ import (
"github.com/owncloud/ocis/ocis-pkg/shared"
)
// Log defines the available logging configuration.
type Log struct {
Level string `mapstructure:"level"`
Pretty bool `mapstructure:"pretty"`
Color bool `mapstructure:"color"`
File string `mapstructure:"file"`
}
// Debug defines the available debug configuration.
type Debug struct {
Addr string `mapstructure:"addr"`