feature:rename

Rename a local feature in the cache. If the feature is active in the current product, SPLENT also updates the product reference.


Usage

splent feature:rename <old_name> <new_name> [--namespace <namespace>]

Example

splent feature:rename notepad notes

With explicit namespace:

splent feature:rename notepad notes --namespace splent-io

Description

This command:

  • Renames a local (non-versioned) feature folder in .splent_cache.
  • Renames the internal src/<namespace>/<feature>/ path when present.
  • Updates references inside source/templates/assets files (.py, .html, .toml, .js).
  • If the feature is active in the current product, updates:
    • the symlink in <product>/features/<namespace>/
    • the feature entry inside the product pyproject.toml

The namespace defaults to GITHUB_USER if set, otherwise splent-io.


Restrictions

This command only works for local features:

  • Versioned names (containing @) cannot be renamed.
  • Features that contain a .git directory cannot be renamed (treated as remote-linked).

Requirements

  • The feature must exist in .splent_cache under the selected namespace.
  • Updating product references requires an active product (SPLENT_APP set) and a readable