mirror of
https://github.com/sbrow/envr.git
synced 2025-12-29 23:47:39 -05:00
refactor: Restore and Sync now share code through the sync function.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user