mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 06:46:22 +08:00
Users can also specify yarn
This commit is contained in:
parent
debc695194
commit
0c8ed09f4c
|
@ -104,7 +104,7 @@ chsrc set ruby rubychina # 使用 RubyChina 作为镜像站
|
|||
```bash
|
||||
chsrc set ruby 或 set gem
|
||||
chsrc set python 或 set pip
|
||||
chsrc set node 或 set npm / nodejs
|
||||
chsrc set node 或 set npm / nodejs / yarn # 同时会为yarn换源
|
||||
chsrc set perl 或 set cpan
|
||||
chsrc set php 或 set composer
|
||||
|
||||
|
|
6
chsrc.c
6
chsrc.c
|
@ -1714,9 +1714,9 @@ target_info
|
|||
|
||||
#define targetinfo(t) (const char*)t
|
||||
static const char
|
||||
*pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)},
|
||||
*pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)},
|
||||
*pl_nodejs[] = {"npm", "node", "js", "nodejs", NULL, targetinfo(&pl_nodejs_target)},
|
||||
*pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)},
|
||||
*pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)},
|
||||
*pl_nodejs[] = {"npm", "node", "js", "nodejs", "yarn" NULL, targetinfo(&pl_nodejs_target)},
|
||||
*pl_perl [] = {"perl", "cpan", NULL, targetinfo(&pl_perl_target)},
|
||||
*pl_php [] = {"php", "composer", NULL, targetinfo(&pl_php_target)},
|
||||
*pl_go [] = {"go", "golang", "goproxy", NULL, targetinfo(&pl_go_target)} ,
|
||||
|
|
Loading…
Reference in New Issue
Block a user