Scaffold a new time-range command for devrec.
Arguments: {{args}}
Steps:
- •Create
src/cli/commands/<name>.tsthat callscreateTimeRangeCommandfrom./create-time-range-command.tswith aDateRangeproducer. Follow the pattern of existing commands (today.ts, yesterday.ts, week.ts, sprint.ts, all.ts). - •Register the command in
src/cli/main.tsalongside the existing commands. - •Create
src/cli/commands/__tests__/<name>.test.tsfollowing the co-located test pattern. - •Follow all project ESLint conventions in every file you create or modify:
- •JSDoc on all exported functions with explicit
@paramand@returns - •
import typefor type-only imports - •
Array<T>notT[] - •
typenotinterfacefor type definitions - •Boolean variable prefixes (is/has/can/should/will/did)
- •PascalCase type names; single-letter generics (
T,K,V) - •kebab-case filenames
- •JSDoc on all exported functions with explicit
- •Run
npm run check && npm run lint && npm run testto verify.