~whynothugo/autovdirsyncer

0192d6cce25c14cafa3f0d5e80919ffde269cae4 — Hugo Osvaldo Barrera 2 years ago 2a69e15 v0.2.0
Make the config reusable as a library
2 files changed, 3 insertions(+), 2 deletions(-)

M main.go
R config.go => vdirsyncer/config.go
M main.go => main.go +2 -1
@@ 12,6 12,7 @@ import (
	"time"

	"github.com/fsnotify/fsnotify"
	vdirsyncer "git.sr.ht/~whynothugo/autovdirsyncer/vdirsyncer"
)

var (


@@ 138,7 139,7 @@ func main() {
	defer watcher.Close()

	// Get the paths we'll monitor.
	storagePaths, err := GetVdirsyncerStoragePaths()
	storagePaths, err := vdirsyncer.GetVdirsyncerStoragePaths()
	if err != nil {
		fmt.Println(err)
		os.Exit(2)

R config.go => vdirsyncer/config.go +1 -1
@@ 1,4 1,4 @@
package main
package vdirsyncer

import (
	"encoding/json"