(args: argparse.Namespace)
| 103 | |
| 104 | |
| 105 | def _cmd_backfill(args: argparse.Namespace) -> int: |
| 106 | if args.all: |
| 107 | result = backfill_ingest.backfill_all(dry_run=args.dry_run) |
| 108 | else: |
| 109 | if not args.user_id: |
| 110 | raise SystemExit("--user-id is required unless --all is set") |
| 111 | result = backfill_ingest.backfill_user(args.user_id, dry_run=args.dry_run) |
| 112 | print(json.dumps(result, ensure_ascii=False, indent=2) if args.json else result) |
| 113 | return 0 |
| 114 | |
| 115 | |
| 116 | def _cmd_monthly(args: argparse.Namespace) -> int: |
nothing calls this directly
no outgoing calls
no test coverage detected