# Run: python3 seed.py <empty workspace directory>
from pathlib import Path
import subprocess
import sys
workspace = Path(sys.argv[1])
workspace.mkdir(parents=True, exist_ok=True)
for section in ['tfoot', 'tbody']:
    (workspace / f'{section}.md').write_text(f'<table><tr><td>One</td></tr><{section}><tr><td>Total</td></tr></{section}></table>')
subprocess.run(['git', 'init', '-q', str(workspace)], check=True)
