feature:edit

Convert a released (versioned) feature into a local editable version.


Usage

splent feature:edit <workspace>/<feature_name>

Examples

splent feature:edit splent_feature_auth
splent feature:edit splent_io/splent_feature_auth

Description

This command:

  • Detects a versioned feature reference (e.g., feature@v1.2.0) in the active product.
  • Creates a local editable copy in .splent_cache (if missing).
  • Switches the feature to the main branch.
  • Fixes the Git remote origin.
  • Updates pyproject.toml to remove the @version.
  • Replaces the versioned symlink with an editable one.

After execution, the feature becomes editable and ready for development.


Requirements

  • A product must be selected (SPLENT_APP set).
  • The feature must be declared in the product.
  • A versioned snapshot must exist in .splent_cache.

Result

Before:

features/<namespace>/<feature>@v1.2.0

After:

features/<namespace>/<feature>

The feature is now linked to an editable working copy on the main branch.