mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 03:04:03 +08:00
parent
001b477936
commit
4c993bac04
@ -63,11 +63,11 @@ void
|
|||||||
pl_nodejs_setsrc (char *option)
|
pl_nodejs_setsrc (char *option)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
char *msg = CliOpt_InEnglish ? "**Three package managers will be replaced for you at the same time: " \
|
char *msg = CliOpt_InEnglish ? "Three package managers will be replaced for you at the same time: " \
|
||||||
"npm, pnpm, yarn. If you need to change the source independently, " \
|
"npm, pnpm, yarn. If you need to change the source independently, " \
|
||||||
"please run independently `chsrc set <pkg-manager>`**\n"
|
"please run independently `chsrc set <pkg-manager>`"
|
||||||
: "**将同时为您更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>**\n";
|
: "将同时为您更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||||
chsrc_log (bdyellow(msg));
|
chsrc_note2 (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool npm_exist, yarn_exist, pnpm_exist;
|
bool npm_exist, yarn_exist, pnpm_exist;
|
||||||
@ -92,6 +92,8 @@ pl_nodejs_setsrc (char *option)
|
|||||||
{
|
{
|
||||||
pl_nodejs_pnpm_setsrc (option);
|
pl_nodejs_pnpm_setsrc (option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ pl_nodejs_yarn_setsrc (char *option)
|
|||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ProgMode_Target_Group!=true)
|
||||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ pl_nodejs_npm_setsrc (char *option)
|
|||||||
|
|
||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
|
if (ProgMode_Target_Group!=true)
|
||||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ pl_nodejs_pnpm_setsrc (char *option)
|
|||||||
|
|
||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
|
if (ProgMode_Target_Group!=true)
|
||||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user