Update inner macro

This commit is contained in:
Aoran Zeng
2024-09-29 11:50:11 +08:00
parent ffaee0b0c3
commit 2a52c898d6
64 changed files with 98 additions and 98 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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环境变量生效");
}

View File

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

View File

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

View File

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