MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / requireDateRange

Function requireDateRange

scripts/changelog-weekly.ts:146–157  ·  view source on GitHub ↗
(parsed: MutableWeeklyOptions)

Source from the content-addressed store, hash-verified

144}
145
146function requireDateRange(parsed: MutableWeeklyOptions) {
147 if (!parsed.from || !parsed.to) {
148 printUsage();
149 process.exit(1);
150 }
151
152 validateDateRange(parsed.from, parsed.to);
153 return {
154 from: parsed.from,
155 to: parsed.to,
156 };
157}
158
159function validateDateRange(from: string, to: string) {
160 validateCliDate(from, fail);

Callers 1

finalizeOptionsFunction · 0.85

Calls 2

validateDateRangeFunction · 0.85
printUsageFunction · 0.70

Tested by

no test coverage detected