Concise output for group Node.js

[GitHub #78]
This commit is contained in:
Aoran Zeng 2024-09-14 03:41:55 +08:00
parent 001b477936
commit 4c993bac04
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 12 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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