mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Use chsrc_alert2()
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
void
|
||||
pl_python_poetry_getsrc (char *option)
|
||||
{
|
||||
chsrc_note2 ("poetry换源情况: 请查阅本项目 pyproject.toml 中 [[tool.poetry.source]]");
|
||||
chsrc_note2 ("poetry换源情况: 请查看本项目 pyproject.toml 中 [[tool.poetry.source]]");
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ pl_python_poetry_setsrc (char *option)
|
||||
char *cmd = NULL;
|
||||
|
||||
if (!chsrc_in_local_mode())
|
||||
chsrc_note2 ("Poertry 仅支持项目级换源");
|
||||
chsrc_alert2 ("Poetry 仅支持项目级换源");
|
||||
|
||||
cmd = xy_2strjoin ("poetry source add my_mirror ", source.url);
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||
|
@@ -48,7 +48,7 @@ pl_python_group_setsrc (char *option)
|
||||
"pip, Poetry, PDM. If you need to change the source independently, "
|
||||
"please run independently `chsrc set <pkg-manager>`"
|
||||
: "将同时更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
chsrc_note2 (msg);
|
||||
chsrc_alert2 (msg);
|
||||
}
|
||||
|
||||
bool pdm_exist = false,
|
||||
|
Reference in New Issue
Block a user