| #!/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()) | |