opsward.generate#

opsward.generate(scan_result, *, agents_md=False, hooks=False)[source]#

Determine which artifacts are missing, render templates, return files to create.

Return type:

list[GeneratedFile]

>>> from pathlib import Path
>>> from opsward.base import ScanResult
>>> files = generate(ScanResult(project_root=Path('/tmp/empty')))
>>> any(f.target_path.name == 'CLAUDE.md' for f in files)
True