Skip to content

Commit

Permalink
Sync spinner tweak and sync log reminder. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
grayside authored and febbraro committed Mar 2, 2018
1 parent 572c415 commit 9bca3aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/project_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (cmd *ProjectSync) StartUnisonSync(ctx *cli.Context, volumeName string, con
cmd.Failure(fmt.Sprintf("Failure configuring file watches on Docker Machine: %v", err), "INOTIFY-WATCH-FAILURE", 12)
}

cmd.out.Info("Starting sync volume: %s", volumeName)
cmd.out.SpinWithVerbose("Starting sync volume: %s", volumeName)
if err := util.Command("docker", "volume", "create", volumeName).Run(); err != nil {
return cmd.Failure(fmt.Sprintf("Failed to create sync volume: %s", volumeName), "VOLUME-CREATE-FAILED", 13)
}
Expand Down Expand Up @@ -194,6 +194,8 @@ func (cmd *ProjectSync) StartUnisonSync(ctx *cli.Context, volumeName string, con
return cmd.Failure(err.Error(), "UNISON-SYNC-FAILED", 13)
}

cmd.out.Info("Watch unison process activities in the sync log: %s", logFile)

return cmd.Success("Unison sync started successfully")
}

Expand Down

0 comments on commit 9bca3aa

Please sign in to comment.