mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-23 20:51:55 +08:00
Update variable
This commit is contained in:
parent
2a52c898d6
commit
35c1a5be18
@ -26,7 +26,7 @@ pl_nodejs_bun_getsrc (char *option)
|
|||||||
void
|
void
|
||||||
pl_nodejs_bun_setsrc (char *option)
|
pl_nodejs_bun_setsrc (char *option)
|
||||||
{
|
{
|
||||||
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
|
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
|
||||||
chsrc_yield_source (pl_nodejs);
|
chsrc_yield_source (pl_nodejs);
|
||||||
|
|
||||||
char *file = xy_strjoin(3, "[install]\n"
|
char *file = xy_strjoin(3, "[install]\n"
|
||||||
@ -35,7 +35,7 @@ pl_nodejs_bun_setsrc (char *option)
|
|||||||
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
|
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
|
||||||
puts (file);
|
puts (file);
|
||||||
|
|
||||||
chsrc_conclude (&source, chsrc_type);
|
chsrc_conclude (&source, setsrc_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ pl_python_setsrc (char *option)
|
|||||||
chsrc_note2 (msg);
|
chsrc_note2 (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
|
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
|
||||||
|
|
||||||
bool pdm_exist = false,
|
bool pdm_exist = false,
|
||||||
poetry_exist = false;
|
poetry_exist = false;
|
||||||
@ -71,7 +71,7 @@ pl_python_setsrc (char *option)
|
|||||||
pl_python_pdm_setsrc (option);
|
pl_python_pdm_setsrc (option);
|
||||||
}
|
}
|
||||||
|
|
||||||
chsrc_conclude (&source, chsrc_type);
|
chsrc_conclude (&source, setsrc_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -60,7 +60,7 @@ pl_ruby_remove_gem_source (const char *source)
|
|||||||
void
|
void
|
||||||
pl_ruby_setsrc (char *option)
|
pl_ruby_setsrc (char *option)
|
||||||
{
|
{
|
||||||
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
|
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
|
||||||
|
|
||||||
chsrc_ensure_program ("gem");
|
chsrc_ensure_program ("gem");
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ pl_ruby_setsrc (char *option)
|
|||||||
cmd = xy_strjoin (4, "bundle config", where, "'mirror.https://rubygems.org' ", source.url);
|
cmd = xy_strjoin (4, "bundle config", where, "'mirror.https://rubygems.org' ", source.url);
|
||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
chsrc_conclude (&source, chsrc_type);
|
chsrc_conclude (&source, setsrc_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -81,7 +81,7 @@ void
|
|||||||
/* 具体的换源步骤,如调用第三方命令... */
|
/* 具体的换源步骤,如调用第三方命令... */
|
||||||
|
|
||||||
// 最后总结输出
|
// 最后总结输出
|
||||||
chsrc_conclude (&source, chsrc_type);
|
chsrc_conclude (&source, setsrc_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user