Move static to file provider (#71)

This commit is contained in:
CrazyMax
2020-05-25 14:08:12 +02:00
committed by GitHub
parent 7c413a3658
commit 5ca0230562
23 changed files with 543 additions and 321 deletions

View File

@@ -58,12 +58,12 @@ func main() {
os.Exit(0)
}()
// Load and check configuration
// Load configuration
cfg, err := config.Load(cli, version)
if err != nil {
log.Fatal().Err(err).Msg("Cannot load configuration")
}
cfg.Display()
log.Debug().Msg(cfg.Display())
// Init
if diun, err = app.New(cfg, location); err != nil {