refactor: Restore and Sync now share code through the sync function.

This commit is contained in:
2025-11-07 12:16:53 -05:00
committed by Spencer Brower
parent 39dc586d3c
commit 638751fb48
2 changed files with 64 additions and 63 deletions

View File

@@ -36,7 +36,7 @@ var syncCmd = &cobra.Command{
var status string
switch changed {
case app.Updated:
case app.BackedUp:
status = "Backed Up"
if err := db.Insert(file); err != nil {
return err