mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 14:44:36 +08:00
parent
001b477936
commit
4c993bac04
|
@ -63,11 +63,11 @@ void
|
|||
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, " \
|
||||
"please run independently `chsrc set <pkg-manager>`**\n"
|
||||
: "**将同时为您更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>**\n";
|
||||
chsrc_log (bdyellow(msg));
|
||||
"please run independently `chsrc set <pkg-manager>`"
|
||||
: "将同时为您更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
chsrc_note2 (msg);
|
||||
}
|
||||
|
||||
bool npm_exist, yarn_exist, pnpm_exist;
|
||||
|
@ -92,6 +92,8 @@ pl_nodejs_setsrc (char *option)
|
|||
{
|
||||
pl_nodejs_pnpm_setsrc (option);
|
||||
}
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -71,7 +71,8 @@ pl_nodejs_yarn_setsrc (char *option)
|
|||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||
}
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
if (ProgMode_Target_Group!=true)
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ pl_nodejs_npm_setsrc (char *option)
|
|||
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
if (ProgMode_Target_Group!=true)
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ pl_nodejs_pnpm_setsrc (char *option)
|
|||
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
if (ProgMode_Target_Group!=true)
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user