product:auto-require
Automatically add missing required features to pyproject.toml based on UVL constraints.
Usage
splent product:auto-require [--pyproject PATH] [--default-org ORG] [--yes] [--dry-run]
Examples
Preview what would be added without modifying files:
splent product:auto-require --dry-run
Apply changes automatically without a confirmation prompt:
splent product:auto-require --yes
Options
| Option | Description |
|---|---|
--pyproject |
Override the pyproject.toml path. |
--default-org |
If set, omit the org/ prefix for that org when writing dependency specs. |
--yes |
Apply changes without prompting for confirmation. |
--dry-run |
Show what would change without modifying any files. |
Description
Reads the UVL model and the current feature selection in pyproject.toml, then computes the full transitive closure of required features via A => B implication constraints. Any feature that is required but not yet declared is added to [tool.splent].features.
The dependency spec is built from the UVL feature metadata (org, package), producing entries in the form org/package (without version). Versions are pinned separately via feature:attach.
Use --dry-run to audit what would be added before committing changes. Use product:missing to inspect the missing features without modifying pyproject.toml.
Requires a locally available UVL file. Run splent spl:fetch first if the SPL catalog has not been downloaded yet.