config
repo_scaffold.add_package.config ¶
Project-type detection and configuration for add-package.
Detects whether the target directory is a Rust cargo workspace or a uv
workspace by inspecting Cargo.toml / pyproject.toml, and collects
the resolved configuration into an AddPackageConfig dataclass.
AddPackageConfig
dataclass
¶
Resolved configuration for one add-package invocation.
ProjectType ¶
Bases: Enum
Supported workspace project types.
detect_project_type ¶
Detect the workspace type from manifest files.
Resolution order
Cargo.tomlwith a[workspace]section →RUST_WORKSPACEpyproject.tomlwith a[tool.uv.workspace]section →UV_WORKSPACEpnpm-workspace.yaml→PNPM_WORKSPACE- None of the above → raise
click.ClickException
| PARAMETER | DESCRIPTION |
|---|---|
project_path
|
Root directory of the workspace project.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ProjectType
|
The detected |
| RAISES | DESCRIPTION |
|---|---|
ClickException
|
When no recognised workspace manifest is found. |