Scaffolding API Reference¶
The headerkit.scaffold module provides domain models and the execution engine for project layouts, standard-library templates, and custom BYOScaffolder plugins.
Classes¶
OutputFile
dataclass
¶
A single file to be written in a project layout.
ProjectLayout
dataclass
¶
A collection of output files comprising a project or package layout.
get_file
¶
write_to_disk
¶
Write all files in this layout to the destination directory.
Source code in headerkit/scaffold.py
ScaffoldOptions
dataclass
¶
ScaffoldOptions(package_name='bindings', target_language='nim', layout='file', options=dict(), interactive=False, extra_context=dict(), test_type='both', test_runner='tripwire')
Configuration options for project scaffolding.
get_option
¶
Get a writer-specific option value.
StdlibScaffolder
¶
Bases: BYOScaffolder
Zero-dependency standard library project scaffolder.
scaffold
¶
Generate project layout using built-in templates.
Source code in headerkit/scaffold.py
Functions¶
scaffold
¶
Scaffold a project layout for a source unit, dispatching to registered hooks.
Source code in headerkit/scaffold.py
prompt_scaffold_options
¶
TTY-aware interactive prompt wizard for scaffolding options.