Skip to content

cli

The command-line interface.

Functions

build

build(
    composition: Path,
    use_defaults: bool,
    output_dir: Path,
    data_file: Optional[Path] = None,
    data: Optional[tuple[tuple[str, str], ...]] = None,
)

Build a project from a composition and render it to a directory.

cli

cli(ctx: Context) -> None

Generate projects from compositions and patterns.

write_schemas

write_schemas(output_dir: Path)

Write the JSON schemas for compositions and patterns to the specified output directory.

The JSON schemas are used by IDEs to provide validation and autocompletion. The output directory must exist and be writable by the user.