(s string)
| 202 | } |
| 203 | |
| 204 | func (c *commandRepositorySyncTo) outputSyncProgress(s string) { |
| 205 | if !c.progress.Enabled() { |
| 206 | return |
| 207 | } |
| 208 | |
| 209 | c.syncProgressMutex.Lock() |
| 210 | defer c.syncProgressMutex.Unlock() |
| 211 | |
| 212 | if len(s) < len(c.lastSyncProgress) { |
| 213 | s += strings.Repeat(" ", len(c.lastSyncProgress)-len(s)) |
| 214 | } |
| 215 | |
| 216 | if c.nextSyncOutputTime.ShouldOutput(syncProgressInterval) { |
| 217 | c.out.printStderr("\r%v", s) |
| 218 | } |
| 219 | |
| 220 | c.lastSyncProgress = s |
| 221 | } |
| 222 | |
| 223 | func (c *commandRepositorySyncTo) finishSyncProcess() { |
| 224 | if !c.progress.Enabled() { |
no test coverage detected