File size: 981 Bytes
17d5066
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
"""Replace the two official pinned scaffold cells in place."""

from __future__ import annotations

import argparse
import sys
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))

from repro_control.scaffold import replace_scaffold_file


def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--scaffold-export",
        type=Path,
        required=True,
        help="Official Executive-summary page.md or a synthetic JSON export",
    )
    parser.add_argument("--summary", type=Path, required=True)
    parser.add_argument("--poster", type=Path, required=True)
    parser.add_argument("--output", type=Path)
    args = parser.parse_args()
    replace_scaffold_file(
        args.scaffold_export,
        summary_path=args.summary,
        poster_path=args.poster,
        output_path=args.output,
    )
    return 0


if __name__ == "__main__":
    raise SystemExit(main())