version-fox / version-fox/vfox

[Feature]: alias | Alias a version to a common name

Open
#359 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
4k
Forks
157
Avg merge
1h 3m
Merged PRs (30d)
5

Description

1. Your usage scenarios?

Switch SDK versions faster, similar to fnm

fnm alias [OPTIONS] <TO_VERSION> <NAME>
2. What is your expected outcome?
# 用大版本号替代具体版本号
vfox alias nodejs@v22.9.0 node22
# 设置默认使用版本
vfox alias nodejs@v20.17.0 default-node

Switching nodejs version :

vfox use node22
vfox use -g defautl-node

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the CLI handling for vfox alias and the existing vfox use and vfox use -g commands. Trace how version names are resolved, then define completion as allowing names such as node22 and default-node to select the specified Node.js versions through those commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.