Skip to content

Commit ba3c5c9

Browse files
committed
add notice about outdated config values
1 parent 53215ea commit ba3c5c9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

main.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
package main
22

33
import (
4+
"fmt"
5+
46
"github.com/merlinfuchs/blimp/internal"
57
"github.com/merlinfuchs/blimp/internal/config"
8+
"github.com/merlinfuchs/blimp/internal/logging"
69
"github.com/rs/zerolog/log"
710
)
811

12+
var outDatedConfigKeys = []string{
13+
"layout",
14+
"views",
15+
}
16+
917
func main() {
1018
config.InitConfig()
19+
logging.InitLogger()
20+
21+
for _, key := range outDatedConfigKeys {
22+
if config.K.Get(key) != nil {
23+
fmt.Printf("Config key '%s' is no longer supported, please take a look at https://github.com/merlinfuchs/blimp#readme to see how to configure blimp!", key)
24+
return
25+
}
26+
}
1127

1228
err := internal.AppEntry()
1329
if err != nil {

0 commit comments

Comments
 (0)