break
}
- cfg, err := LoadConfig(args[1])
- if err != nil {
- log.Fatal(err)
- }
- state, err := LoadState(cfg.StatePath)
- if err != nil {
- log.Fatal(err)
- }
+ cfg, err := LoadConfig(args[1])
+ if err != nil {
+ log.Fatal(err)
+ }
+ state, err := LoadState(cfg.StatePath)
+ if err != nil {
+ log.Fatal(err)
+ }
- err = handleFiles(cfg, state)
- if err != nil {
- log.Fatal(err)
- }
+ err = handleFiles(cfg, state)
+ if err != nil {
+ log.Fatal(err)
+ }
- err = WriteStateIfChanged(cfg.StatePath, state)
- if err != nil {
- log.Fatal(err)
- }
+ err = WriteStateIfChanged(cfg.StatePath, state)
+ if err != nil {
+ log.Fatal(err)
+ }
return
}