feature:attach

Attach a released feature version to the active product.


Usage

splent feature:attach <namespace>/<feature_name> <version>

Example

splent feature:attach splent_io/notepad v1.2.0

If no namespace is provided, splent-io is used by default.


Description

This command:

  • Verifies that the specified GitHub tag exists.
  • Clones the feature version into .splent_cache (if missing).
  • Updates the product’s pyproject.toml to reference feature@version.
  • Creates or updates a versioned symlink inside the product’s features/ directory.

The active product is determined by the SPLENT_APP environment variable.


Resulting location

Cached feature:

<workspace>/.splent_cache/features/<namespace>/<feature_name>@<version>/