feature:fork

Fork a feature from the official namespace on GitHub and clone it locally.


Usage

splent feature:fork <feature_name> [--version <version>]

Example

splent feature:fork notepad

Specify version:

splent feature:fork notepad --version v1.2.0

Description

This command:

  1. Forks the feature repository from splent-io into your GitHub account.
  2. Waits until the fork is ready.
  3. Automatically clones the fork into the local .splent_cache.

The cloned version defaults to v1.0.0 unless specified.


Requirements

Environment variables:

  • GITHUB_TOKEN
  • GITHUB_USER

The token must have permission to create forks.


Result

After execution:

  • A fork exists under your GitHub account.
  • The forked repository is cloned into:
<workspace>/.splent_cache/features/<your_namespace>/<feature_name>@<version>/

You can now modify and release your own version of the feature.