spl:add-constraints

Interactive wizard to add missing UVL constraints based on code analysis.


Usage

splent spl:add-constraints

Description

Cross-checks feature imports against existing UVL constraints and offers to add the missing ones interactively.

For each feature in the product, it:

  1. Scans source code for imports of other splent_feature_* packages.
  2. Compares detected dependencies against constraints already declared in the .uvl file.
  3. For each missing constraint (e.g. profile => auth), prompts the developer to add it.

This ensures the UVL model stays in sync with the actual code dependencies without manual editing.


Example

splent spl:add-constraints

  Scanning feature imports...

  splent_feature_profile imports splent_feature_auth
    → constraint "profile => auth" not in UVL
    Add it? [Y/n]: y
    ✅ Added: profile => auth

  splent_feature_confirmemail imports splent_feature_auth
    → constraint "confirmemail => auth" already exists
    ✔ OK

  1 constraint(s) added.

Requirements

  • A product must be selected (SPLENT_APP set).
  • A UVL file must exist for the product.

See also


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es