更新文档

This commit is contained in:
Aoran Zeng
2026-02-24 16:29:30 +08:00
parent 2be4dce1ea
commit 3674fe882c
8 changed files with 23 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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
```

View File

@@ -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;

View File

@@ -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;