aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-06 11:34:14 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-06 11:34:14 +0200
commitfccc89de47a3ed5fc576f28f7f02b1111a59c0c4 (patch)
tree9de36f7e6eab07c78d59428b2345aceab34df9cd /main.go
parent9b9710511b0dbe51ac030ef908f9468103b0bd0a (diff)
downloaddna-backup-fccc89de47a3ed5fc576f28f7f02b1111a59c0c4.tar.gz
dna-backup-fccc89de47a3ed5fc576f28f7f02b1111a59c0c4.zip
refactor: move repo and delta in their own package
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
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
}