mirror of
https://github.com/RubyMetric/chsrc
synced 2026-03-05 13:50:51 +08:00
更新文档
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -63,7 +63,7 @@
|
||||
|
||||
选项:
|
||||
-dry Dry Run,模拟换源过程,命令仅打印并不运行
|
||||
-local 仅对本项目而非全局换源 (通过ls <target>查看支持情况)
|
||||
-scope=project|user|system 仅对本项目换源 / 用户级换源 / 系统级换源 (通过ls <target>查看)
|
||||
-ipv6 使用IPv6测速
|
||||
-en(glish) 使用英文输出
|
||||
-no-color 无颜色输出
|
||||
@@ -114,7 +114,7 @@ COMMANDS:
|
||||
|
||||
OPTIONS:
|
||||
-dry Dry Run. Simulate the source changing process, command only prints, not run
|
||||
-local Change source only for this project rather than globally (Via `ls <target>`)
|
||||
-scope=project|user|system Change source only for this project / user level / system level (Via `ls <target>`)
|
||||
-ipv6 Speed measurement using IPv6
|
||||
-en(glish) Output in English
|
||||
-no-color Output without color
|
||||
@@ -122,7 +122,7 @@ OPTIONS:
|
||||
MAINTAIN:
|
||||
We invite you to become a Chef to ensure the quality of recipes you are familiar with for users:
|
||||
|
||||
Source Code: @url@
|
||||
Source Code: https://github.com/RubyMetric/chsrc
|
||||
Become a Maintainer: https://github.com/RubyMetric/chsrc/issues/275
|
||||
```
|
||||
|
||||
|
||||
@@ -77,7 +77,8 @@ pl_js_yarn_setsrc (char *option)
|
||||
{
|
||||
if (chsrc_in_project_scope_mode())
|
||||
{
|
||||
char *msg = ENGLISH ? "Yarn v1 doesn't support `-local`. SKIP changing source!" : "Yarn v1 不支持 -local,跳过换源";
|
||||
char *msg = ENGLISH ? "Yarn v1 doesn't support `-scope=project`. SKIP changing source!"
|
||||
: "Yarn v1 不支持项目级换源,跳过换源";
|
||||
chsrc_error (msg);
|
||||
// 不能直接退出,因为 Leader target 不能就此结束
|
||||
return;
|
||||
|
||||
@@ -66,7 +66,8 @@ pl_python_pip_setsrc (char *option)
|
||||
// 对于不支持的情况,尽早结束
|
||||
if (chsrc_in_project_scope_mode())
|
||||
{
|
||||
char *msg = ENGLISH ? "pip doesn't support `-local`. SKIP changing source!" : "pip 不支持 -local,跳过换源";
|
||||
char *msg = ENGLISH ? "pip doesn't support `-scope=project`. SKIP changing source!"
|
||||
: "pip 不支持项目级换源,跳过换源";
|
||||
chsrc_error (msg);
|
||||
// 不能直接退出,因为 Leader target 不能就此结束
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user