split **/pkg/config/config.go up to multiple files
This commit is contained in:
@@ -18,9 +18,9 @@ func GLAuthCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.GLAuth.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.GLAuth.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -18,9 +18,9 @@ func GraphCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.Graph.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.Graph.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -18,9 +18,9 @@ func GraphExplorerCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.Graph.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.Graph.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -21,9 +21,9 @@ func IDPCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.IDP.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.IDP.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -18,9 +18,9 @@ func OCSCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.OCS.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.OCS.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -21,9 +21,9 @@ func ProxyCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.Proxy.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.Proxy.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -21,9 +21,9 @@ func SettingsCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.Settings.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.Settings.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -22,9 +22,9 @@ func WebDAVCommand(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.WebDAV.Commons = cfg.Commons
|
||||
}
|
||||
//if cfg.Commons != nil {
|
||||
// cfg.WebDAV.Commons = cfg.Commons
|
||||
//}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user