()
| 60 | |
| 61 | |
| 62 | def main() -> int: |
| 63 | args = parse_args() |
| 64 | print(f"[fetch] downloading {args.repo_id} (revision={args.revision or 'main'})") |
| 65 | snapshot = _snapshot(args.repo_id, args.revision) |
| 66 | print(f"[fetch] mirror {snapshot} -> {args.output_dir}") |
| 67 | _mirror(snapshot, args.output_dir) |
| 68 | print(f"[fetch] done: {args.output_dir}") |
| 69 | return 0 |
| 70 | |
| 71 | |
| 72 | if __name__ == "__main__": |
no test coverage detected