feature:add
Adds a local (non-versioned) feature from the cache to the active product.
Usage
splent feature:add <namespace>/<feature_name>
Example
splent feature:add drorganvidez/notepad
Description
This command:
- Validates the
<namespace>/<feature_name>format. - Ensures the feature exists in
.splent_cache. - Adds the feature to the product’s
pyproject.tomlunderfeatures. - Creates a symbolic link inside the product’s
features/directory.
The active product is determined by the SPLENT_APP environment variable.
Requirements
- A product must be selected (
splent product:select). - The feature must already exist in the local cache (
splent feature:create).
Result
After running this command:
- The feature is declared in the product configuration.
- The product has a live symlink to the cached feature.
- The feature is ready to be synchronized and installed.