Use chef_allow_gsr for lang

This commit is contained in:
Aoran Zeng
2025-08-10 19:50:17 +08:00
parent b1ee34862c
commit ff65de3a75
32 changed files with 77 additions and 144 deletions

View File

@@ -8,6 +8,7 @@ void
pl_clojure_prelude ()
{
use_this(pl_clojure);
chef_allow_s(pl_clojure);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");
@@ -18,8 +19,6 @@ pl_clojure_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_set();
chef_allow_local_mode (this, Can, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -10,6 +10,7 @@ void
pl_dart_flutter_prelude (void)
{
use_this(pl_dart_flutter);
chef_allow_gsr(pl_dart_flutter);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-07-11");
@@ -22,10 +23,6 @@ pl_dart_flutter_prelude (void)
"czyt", "czyt.go@gmail.com",
"MadDogOwner", "xiaoran@xrgzs.top");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_forbid_local_mode (this);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_dart_prelude (void)
{
use_this(pl_dart);
chef_allow_gsr(pl_dart);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-07-11");
@@ -20,10 +21,6 @@ pl_dart_prelude (void)
"czyt", "czyt.go@gmail.com",
"MadDogOwner", "xiaoran@xrgzs.top");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -22,6 +22,7 @@ void
pl_go_prelude ()
{
use_this(pl_go);
chef_allow_gsr(pl_go);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-08-10");
@@ -34,10 +35,6 @@ pl_go_prelude ()
"czyt", "czyt.go@gmail.com",
"Rui Yang", "techoc@foxmail.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_haskell_prelude ()
{
use_this(pl_haskell);
chef_allow_s(pl_haskell);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");
@@ -18,8 +19,6 @@ pl_haskell_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_set();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_java_prelude ()
{
use_this(pl_java);
chef_allow_gsr(pl_java);
chef_set_created_on (this, "2023-08-31");
chef_set_last_updated (this, "2025-08-10");
@@ -19,10 +20,6 @@ pl_java_prelude ()
chef_set_contributors (this, 1,
"BingChunMoLi", "bingchunmoli@bingchunmoli.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_js_bun_prelude (void)
{
use_this(pl_js_bun);
chef_allow_gsr(pl_js_bun);
chef_set_created_on (this, "2024-09-29");
chef_set_last_updated (this, "2025-07-22");
@@ -19,10 +20,6 @@ pl_js_bun_prelude (void)
chef_set_contributors (this, 1,
"Lontten", "lontten@163.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_js_yarn_prelude (void)
{
use_this(pl_js_yarn);
chef_allow_gsr(pl_js_yarn);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");
@@ -19,10 +20,6 @@ pl_js_yarn_prelude (void)
chef_set_contributors (this, 1,
"Mr. Will", "mr.will.com@outlook.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_js_npm_prelude (void)
{
use_this(pl_js_npm);
chef_allow_gsr(pl_js_npm);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-07-11");
@@ -19,10 +20,6 @@ pl_js_npm_prelude (void)
chef_set_contributors (this, 1,
"Mr. Will", "mr.will.com@outlook.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_js_nvm_prelude (void)
{
use_this(pl_js_nvm);
chef_allow_gsr(pl_js_nvm);
chef_set_created_on (this, "2024-09-23");
chef_set_last_updated (this, "2025-06-19");
@@ -16,12 +17,7 @@ pl_js_nvm_prelude (void)
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nul None", "nul@none.org");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_set_contributors (this, 0);
chef_forbid_local_mode (this);
chef_allow_english(this);

View File

@@ -8,6 +8,7 @@ void
pl_js_pnpm_prelude (void)
{
use_this(pl_js_pnpm);
chef_allow_gsr(pl_js_pnpm);
chef_set_created_on (this, "2024-04-18");
chef_set_last_updated (this, "2025-07-11");
@@ -16,12 +17,7 @@ pl_js_pnpm_prelude (void)
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nul None", "nul@none.org");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_set_contributors (this, 0);
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);

View File

@@ -8,6 +8,7 @@ void
pl_julia_prelude ()
{
use_this(pl_julia);
chef_allow_gs(pl_julia);
chef_set_created_on (this, "2023-08-31");
chef_set_last_updated (this, "2025-08-10");
@@ -18,9 +19,6 @@ pl_julia_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -15,6 +15,7 @@ void
pl_lua_prelude ()
{
use_this(pl_lua);
chef_allow_gs(pl_lua);
chef_set_created_on (this, "2023-09-27");
chef_set_last_updated (this, "2025-08-10");
@@ -25,9 +26,6 @@ pl_lua_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_nuget_prelude ()
{
use_this(pl_nuget);
chef_allow_gs(pl_nuget);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");
@@ -18,9 +19,6 @@ pl_nuget_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_forbid_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_ocaml_prelude ()
{
use_this(pl_ocaml);
chef_allow_gs(pl_ocaml);
chef_set_created_on (this, "2023-09-15");
chef_set_last_updated (this, "2025-08-10");
@@ -18,10 +19,6 @@ pl_ocaml_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_php_prelude ()
{
use_this(pl_php);
chef_allow_gsr(pl_php);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-08-10");
@@ -18,10 +19,6 @@ pl_php_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, Can, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_perl_prelude ()
{
use_this(pl_perl);
chef_allow_gsr(pl_perl);
chef_set_created_on (this, "2023-09-31");
chef_set_last_updated (this, "2025-08-10");
@@ -18,10 +19,6 @@ pl_perl_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_python_pdm_prelude (void)
{
use_this(pl_python_pdm);
chef_allow_gsr(pl_python_pdm);
chef_set_created_on (this, "2024-06-05");
chef_set_last_updated (this, "2025-07-11");
@@ -18,10 +19,6 @@ pl_python_pdm_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_python_poetry_prelude (void)
{
use_this(pl_python_poetry);
chef_allow_gsr(pl_python_poetry);
chef_set_created_on (this, "2024-08-08");
chef_set_last_updated (this, "2025-07-11");
@@ -18,10 +19,6 @@ pl_python_poetry_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "Poetry 默认使用项目级换源", "Poetry uses project-level source changing by default");
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_python_rye_prelude (void)
{
use_this(pl_python_rye);
chef_allow_gsr(pl_python_rye);
chef_set_created_on (this, "2024-12-06");
chef_set_last_updated (this, "2025-08-09");
@@ -18,10 +19,6 @@ pl_python_rye_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -13,7 +13,7 @@ def_target(pl_python_group);
static char *
pl_python_speed_url_constructor (char *url, char *user_data)
{
char *str = xy_str_delete_suffix ("/simple");
char *str = xy_str_delete_suffix (url, "/simple");
str = xy_2strjoin (str, "/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl");
return str;
}

View File

@@ -8,6 +8,7 @@ void
pl_python_pip_prelude (void)
{
use_this(pl_python_pip);
chef_allow_gsr(pl_python_pip);
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-07-11");
@@ -18,10 +19,6 @@ pl_python_pip_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_forbid_local_mode (this);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_python_uv_prelude (void)
{
use_this(pl_python_uv);
chef_allow_gsr(pl_python_uv);
chef_set_created_on (this, "2024-12-11");
chef_set_last_updated (this, "2025-08-09");
@@ -20,10 +21,6 @@ pl_python_uv_prelude (void)
"ccy", "icuichengyi@gmail.com",
"Aoran Zeng", "ccmywish@qq.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -8,6 +8,7 @@ void
pl_r_prelude ()
{
use_this(pl_r);
chef_allow_gs(pl_r);
chef_set_created_on (this, "2023-09-21");
chef_set_last_updated (this, "2025-08-10");
@@ -18,10 +19,6 @@ pl_r_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_allow_user_define(this);

View File

@@ -16,6 +16,7 @@ void
pl_ruby_prelude (void)
{
use_this(pl_ruby);
chef_allow_gsr(pl_ruby);
chef_set_created_on (this, "2023-08-29");
chef_set_last_updated (this, "2025-07-14");
@@ -26,10 +27,6 @@ pl_ruby_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, PartiallyCan, "Support `bundler`. No support for `gem`", "Support `bundler`. No support for `gem`");
chef_allow_english(this);
chef_allow_user_define(this);
@@ -76,7 +73,8 @@ pl_ruby_setsrc (char *option)
{
chsrc_ensure_program ("gem");
chsrc_yield_source_and_confirm (pl_ruby);
use_this(pl_ruby);
Source_t source = chsrc_yield_source_and_confirm (this, option);
char *cmd = NULL;

View File

@@ -8,6 +8,7 @@ void
pl_rust_cargo_prelude (void)
{
use_this(pl_rust_cargo);
chef_allow_gsr(pl_rust_cargo);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-07-22");
@@ -19,9 +20,6 @@ pl_rust_cargo_prelude (void)
chef_set_contributors (this, 1,
"Mikachu2333", "mikachu.23333@zohomail.com");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, PartiallyCan, "可以基于本项目换源吗?请帮助确认", "Can it change sources based on this project? Please help confirm");
chef_forbid_english (this);

View File

@@ -11,6 +11,7 @@ void
pl_rust_rustup_prelude (void)
{
use_this(pl_rust_rustup);
chef_allow_gsr(pl_rust_rustup);
chef_set_created_on (this, "2024-10-02");
chef_set_last_updated (this, "2025-08-07");
@@ -23,10 +24,6 @@ pl_rust_rustup_prelude (void)
"Yangmoooo", "yangmoooo@outlook.com",
"Mikachu2333", "mikachu.23333@zohomail.com");
chef_allow_get();
chef_allow_set();
chef_forbid_reset();
chef_forbid_local_mode (this);
chef_forbid_english (this);
chef_allow_user_define(this);

View File

@@ -6,7 +6,7 @@
* Contributors : Nil Null <nil@null.org>
* |
* Created On : <2024-08-09>
* Last Modified : <2025-08-09>
* Last Modified : <2025-08-10>
* -------------------------------------------------------------
* 本文件作为一个通用模板:
*
@@ -51,6 +51,10 @@ void
<category>_<target>_prelude (void)
{
use_this(<category>_<target>);
chef_allow_gsr(<category>_<target>);
// chef_allow_s(<category>_<target>);
// chef_allow_gs(<category>_<target>);
// chef_allow_sr(<category>_<target>);
chef_set_created_on (this, "2024-08-09");
chef_set_last_updated (this, "2025-08-12");
@@ -62,9 +66,6 @@ void
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, PartiallyCan, "具体说明是否支持项目级换源...", "Tell users the local mode support");