mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-24 03:19:27 +08:00
Update inner macro
This commit is contained in:
@@ -67,7 +67,7 @@ wr_anaconda_setsrc (char *option)
|
||||
puts (file);
|
||||
|
||||
chsrc_note2 ("然后运行 conda clean -i 清除索引缓存,保证用的是镜像站提供的索引");
|
||||
chsrc_conclude (&source, ChsrcTypeSemiAuto);
|
||||
chsrc_conclude (&source, SetsrcType_SemiAuto);
|
||||
}
|
||||
|
||||
def_target_s (wr_anaconda);
|
||||
|
||||
@@ -38,7 +38,7 @@ wr_cocoapods_setsrc (char *option)
|
||||
char *source_str = xy_strjoin (3, "source '", source.url, "'");
|
||||
say (source_str);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeManual);
|
||||
chsrc_conclude (&source, SetsrcType_Manual);
|
||||
}
|
||||
|
||||
def_target_s (wr_cocoapods);
|
||||
|
||||
@@ -91,7 +91,7 @@ wr_dockerhub_setsrc (char *option)
|
||||
chsrc_note2 ("选择“Docker Engine”选项卡,在该选项卡中找到“registry-mirrors”一栏,添加镜像地址:");
|
||||
puts (source.url);
|
||||
}
|
||||
chsrc_conclude (&source, ChsrcTypeManual);
|
||||
chsrc_conclude (&source, SetsrcType_Manual);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ wr_emacs_setsrc (char *option)
|
||||
chsrc_note2 ("Emacs换源涉及Elisp,需要手动查阅并换源:");
|
||||
puts (source.url);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeManual);
|
||||
chsrc_conclude (&source, SetsrcType_Manual);
|
||||
}
|
||||
|
||||
def_target_s (wr_emacs);
|
||||
|
||||
@@ -37,7 +37,7 @@ wr_flathub_setsrc (char *option)
|
||||
char *cmd = xy_2strjoin ("flatpak remote-modify flathub --url=", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
}
|
||||
|
||||
def_target_s (wr_flathub);
|
||||
|
||||
@@ -33,7 +33,7 @@ wr_guix_setsrc (char *option)
|
||||
|
||||
chsrc_note2 ("为防止扰乱配置文件,请您手动写入以下内容到 ~/.config/guix/channels.scm 文件中");
|
||||
puts (file);
|
||||
chsrc_conclude (&source, ChsrcTypeManual);
|
||||
chsrc_conclude (&source, SetsrcType_Manual);
|
||||
}
|
||||
|
||||
def_target_s (wr_guix);
|
||||
|
||||
@@ -89,7 +89,7 @@ wr_homebrew_setsrc (char *option)
|
||||
chsrc_append_to_file (core_git_remote_fish, fishrc);
|
||||
}
|
||||
|
||||
chsrc_conclude(&source, ChsrcTypeAuto);
|
||||
chsrc_conclude(&source, SetsrcType_Auto);
|
||||
chsrc_note2 ("请您重启终端使Homebrew环境变量生效");
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ wr_nix_setsrc (char *option)
|
||||
chsrc_note2 ("若您使用的是NixOS,请额外添加下述内容至 configuration.nix 中");
|
||||
puts (cmd);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeSemiAuto);
|
||||
chsrc_conclude (&source, SetsrcType_SemiAuto);
|
||||
}
|
||||
|
||||
def_target_s (wr_nix);
|
||||
|
||||
@@ -78,7 +78,7 @@ wr_tex_setsrc (char *option)
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
}
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeUntested);
|
||||
chsrc_conclude (&source, SetsrcType_Untested);
|
||||
}
|
||||
|
||||
def_target(wr_tex);
|
||||
|
||||
@@ -34,14 +34,14 @@ wr_winget_setsrc (char *option)
|
||||
chsrc_run ("winget source remove winget", RunOpt_Default);
|
||||
chsrc_run (xy_2strjoin ("winget source add winget ", source.url), RunOpt_Default);
|
||||
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
}
|
||||
|
||||
void
|
||||
wr_winget_resetsrc (char *option)
|
||||
{
|
||||
chsrc_run ("winget source reset winget", RunOpt_Default);
|
||||
chsrc_conclude (NULL, ChsrcTypeAuto);
|
||||
chsrc_conclude (NULL, SetsrcType_Auto);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user