fix(cli): keep REPL alive on errors and consolidate help\n\n- Replace process.exit(1) with thrown errors in handlers\n- REPL catches and prints CLI errors without exiting\n- Consolidated help to include all commands and examples\n- Add events:import:wsdc command mapping and alias

This commit is contained in:
Radosław Gierwiało
2025-11-15 21:41:01 +01:00
parent 78f96e2849
commit 457de6c1c4
5 changed files with 202 additions and 28 deletions

View File

@@ -105,6 +105,18 @@ With Makefile shortcuts:
- `npm run cli -- events:participants --slug warsaw-dance-2025 --limit 50`
- `npm run cli -- events:participants --slug warsaw-dance-2025 --limit 200 --csv > participants.csv`
### events:import:wsdc
- Description: Import events from worldsdc.com calendar page.
- Notes: Uses the calendars embedded data (title/start/end/url). Does not set `participants` or `worldsdcId`.
- Options:
- `--dry-run`: show what would be created without writing to DB
- `--since YYYY-MM-DD`: only events on/after date
- `--until YYYY-MM-DD`: only events on/before date
- `--limit <n>`: limit considered items after filtering
- Examples:
- `npm run cli -- events:import:wsdc --dry-run --since 2024-01-01 --until 2024-12-31`
- `npm run cli -- events:import:wsdc --limit 50`
### logs:app
- Description: Tail application log file (if configured)
- Options: