(cp *maintenance.CycleParams, t time.Time, rep repo.DirectRepository)
| 104 | } |
| 105 | |
| 106 | func (c *commandMaintenanceInfo) displayCycleInfo(cp *maintenance.CycleParams, t time.Time, rep repo.DirectRepository) { |
| 107 | c.out.printStdout(" scheduled: %v\n", cp.Enabled) |
| 108 | |
| 109 | if cp.Enabled { |
| 110 | c.out.printStdout(" interval: %v\n", cp.Interval) |
| 111 | |
| 112 | if rep.Time().Before(t) { |
| 113 | c.out.printStdout(" next run: %v (in %v)\n", formatTimestamp(t), t.Sub(clock.Now()).Truncate(time.Second)) |
| 114 | } else { |
| 115 | c.out.printStdout(" next run: now\n") |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | func getMessageFromRun(extra []maintenancestats.Extra) string { |
| 121 | succeed := "SUCCESS" |
no test coverage detected