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:
- Forks the feature repository from
splent-iointo your GitHub account. - Waits until the fork is ready.
- Automatically clones the fork into the local
.splent_cache.
The cloned version defaults to v1.0.0 unless specified.
Requirements
Environment variables:
GITHUB_TOKENGITHUB_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.