From fccc89de47a3ed5fc576f28f7f02b1111a59c0c4 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 6 Oct 2021 11:34:14 +0200 Subject: refactor: move repo and delta in their own package --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 51cfac2..f1bb1d8 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "os" "github.com/n-peugnet/dna-backup/logger" + "github.com/n-peugnet/dna-backup/repo" ) type command struct { @@ -84,7 +85,7 @@ func commitMain(args []string) error { } source := args[0] dest := args[1] - repo := NewRepo(dest) + repo := repo.NewRepo(dest) repo.Commit(source) return nil } @@ -95,7 +96,7 @@ func restoreMain(args []string) error { } source := args[0] dest := args[1] - repo := NewRepo(source) + repo := repo.NewRepo(source) repo.Restore(dest) return nil } -- cgit v1.2.3