(from: string, to: string)
| 157 | } |
| 158 | |
| 159 | function validateDateRange(from: string, to: string) { |
| 160 | validateCliDate(from, fail); |
| 161 | validateCliDate(to, fail); |
| 162 | if (from > to) { |
| 163 | fail(`Invalid date range: --from ${from} is after --to ${to}.`); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | function getWeeklyCommits(options: WeeklyOptions): WeeklyCommit[] { |
| 168 | return getCommits(options.from, options.to) |
no test coverage detected