diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-06 11:34:14 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-06 11:34:14 +0200 |
commit | fccc89de47a3ed5fc576f28f7f02b1111a59c0c4 (patch) | |
tree | 9de36f7e6eab07c78d59428b2345aceab34df9cd /main.go | |
parent | 9b9710511b0dbe51ac030ef908f9468103b0bd0a (diff) | |
download | dna-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.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } |