使用 chef_prep_this()

This commit is contained in:
Aoran Zeng
2025-08-22 13:08:27 +08:00
parent 12e69edb86
commit adca7b3ea2
69 changed files with 75 additions and 151 deletions

View File

@@ -7,8 +7,7 @@ def_target(pl_clojure, "clojure/clojars/cloj/lein");
void
pl_clojure_prelude ()
{
use_this(pl_clojure);
chef_allow_s(pl_clojure);
chef_prep_this (pl_clojure, s);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_dart_flutter, "flutter");
void
pl_dart_flutter_prelude (void)
{
use_this(pl_dart_flutter);
chef_allow_gsr(pl_dart_flutter);
chef_prep_this (pl_dart_flutter, gsr);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_dart, "dart/pub");
void
pl_dart_prelude (void)
{
use_this(pl_dart);
chef_allow_gsr(pl_dart);
chef_prep_this (pl_dart, gsr);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -21,8 +21,7 @@ def_target(pl_go, "go/golang/goproxy");
void
pl_go_prelude ()
{
use_this(pl_go);
chef_allow_gsr(pl_go);
chef_prep_this (pl_go, gsr);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_haskell, "haskell/cabal/stack/hackage");
void
pl_haskell_prelude ()
{
use_this(pl_haskell);
chef_allow_s(pl_haskell);
chef_prep_this (pl_haskell, s);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_java, "java/maven/mvn/gradle");
void
pl_java_prelude ()
{
use_this(pl_java);
chef_allow_gsr(pl_java);
chef_prep_this (pl_java, gsr);
chef_set_created_on (this, "2023-08-31");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_js_bun, "bun");
void
pl_js_bun_prelude (void)
{
use_this(pl_js_bun);
chef_allow_gsr(pl_js_bun);
chef_prep_this (pl_js_bun, gsr);
chef_set_created_on (this, "2024-09-29");
chef_set_last_updated (this, "2025-07-22");

View File

@@ -70,8 +70,7 @@ pl_js_group_setsrc (char *option)
chsrc_set_target_group_mode ();
use_this(pl_js_group);
Source_t source = chsrc_yield_source_and_confirm (this, option);
use_this_source (pl_js_group);
if (npm_exist)
{

View File

@@ -7,8 +7,7 @@ def_target(pl_js_yarn, "yarn");
void
pl_js_yarn_prelude (void)
{
use_this(pl_js_yarn);
chef_allow_gsr(pl_js_yarn);
chef_prep_this (pl_js_yarn, gsr);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -14,8 +14,7 @@ def_target(pl_js_group, "js/javascript/node/nodejs");
void
pl_js_group_prelude (void)
{
use_this(pl_js_group);
chef_allow_gsr(pl_js_group);
chef_prep_this (pl_js_group, gsr);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");
@@ -51,8 +50,7 @@ def_target(pl_js_nodejs_binary, "__internal_use_nodejs_binary__");
void
pl_js_nodejs_binary_prelude (void)
{
use_this(pl_js_nodejs_binary);
chef_allow_gsr(pl_js_group);
chef_prep_this (pl_js_nodejs_binary, NOOP);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_js_npm, "npm");
void
pl_js_npm_prelude (void)
{
use_this(pl_js_npm);
chef_allow_gsr(pl_js_npm);
chef_prep_this (pl_js_npm, gsr);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_js_nvm, "nvm");
void
pl_js_nvm_prelude (void)
{
use_this(pl_js_nvm);
chef_allow_gsr(pl_js_nvm);
chef_prep_this (pl_js_nvm, gsr);
chef_set_created_on (this, "2024-09-23");
chef_set_last_updated (this, "2025-06-19");

View File

@@ -7,8 +7,7 @@ def_target(pl_js_pnpm, "pnpm");
void
pl_js_pnpm_prelude (void)
{
use_this(pl_js_pnpm);
chef_allow_gsr(pl_js_pnpm);
chef_prep_this (pl_js_pnpm, gsr);
chef_set_created_on (this, "2024-04-18");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_julia, "julia");
void
pl_julia_prelude ()
{
use_this(pl_julia);
chef_allow_gs(pl_julia);
chef_prep_this (pl_julia, gs);
chef_set_created_on (this, "2023-08-31");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -14,8 +14,7 @@ def_target(pl_lua, "lua/luarocks");
void
pl_lua_prelude ()
{
use_this(pl_lua);
chef_allow_gs(pl_lua);
chef_prep_this (pl_lua, gs);
chef_set_created_on (this, "2023-09-27");
chef_set_last_updated (this, "2025-08-10");
@@ -49,8 +48,7 @@ pl_lua_getsrc (char *option)
void
pl_lua_setsrc (char *option)
{
use_this(pl_lua);
Source_t source = chsrc_yield_source_and_confirm (this, option);
use_this_source (pl_lua);
char *config = xy_strcat (3, "rocks_servers = {\n"
" \"", source.url, "\"\n"

View File

@@ -7,8 +7,7 @@ def_target(pl_nuget, "nuget/net/.net/dotnet");
void
pl_nuget_prelude ()
{
use_this(pl_nuget);
chef_allow_gs(pl_nuget);
chef_prep_this (pl_nuget, gs);
chef_set_created_on (this, "2023-09-10");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_ocaml, "ocaml/opam");
void
pl_ocaml_prelude ()
{
use_this(pl_ocaml);
chef_allow_gs(pl_ocaml);
chef_prep_this (pl_ocaml, gs);
chef_set_created_on (this, "2023-09-15");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_php, "php/composer");
void
pl_php_prelude ()
{
use_this(pl_php);
chef_allow_gs(pl_php);
chef_prep_this (pl_php, gs);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-08-10");
@@ -56,8 +55,7 @@ pl_php_setsrc (char *option)
{
pl_php_check_cmd ();
use_this(pl_php);
Source_t source = chsrc_yield_source_and_confirm (this, option);
use_this_source (pl_php);
char *where = " -g ";
if (chsrc_in_local_mode())

View File

@@ -7,8 +7,7 @@ def_target(pl_perl, "perl/cpan");
void
pl_perl_prelude ()
{
use_this(pl_perl);
chef_allow_gs(pl_perl);
chef_prep_this (pl_perl, gs);
chef_set_created_on (this, "2023-09-31");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -7,8 +7,7 @@ def_target(pl_python_pdm, "pdm");
void
pl_python_pdm_prelude (void)
{
use_this(pl_python_pdm);
chef_allow_gsr(pl_python_pdm);
chef_prep_this (pl_python_pdm, gsr);
chef_set_created_on (this, "2024-06-05");
chef_set_last_updated (this, "2025-07-11");
@@ -22,9 +21,6 @@ pl_python_pdm_prelude (void)
chef_allow_english(this);
chef_allow_user_define(this);
// 使用 pl_python_group 的源
this->sources = pl_python_group_target.sources;
this->sources_n = pl_python_group_target.sources_n;
}

View File

@@ -7,8 +7,7 @@ def_target(pl_python_poetry, "poetry");
void
pl_python_poetry_prelude (void)
{
use_this(pl_python_poetry);
chef_allow_gsr(pl_python_poetry);
chef_prep_this (pl_python_poetry, gsr);
chef_set_created_on (this, "2024-08-08");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -58,8 +58,7 @@ pl_python_group_setsrc (char *option)
chsrc_set_target_group_mode ();
use_this(pl_python_group);
Source_t source = chsrc_yield_source_and_confirm (this, option);
use_this_source (pl_python_group);
// 交给后面检查命令的存在性

View File

@@ -9,8 +9,7 @@ def_target(pl_python_rye, "rye");
void
pl_python_rye_prelude (void)
{
use_this(pl_python_rye);
chef_allow_gsr(pl_python_rye);
chef_prep_this (pl_python_rye, gsr);
chef_set_created_on (this, "2024-12-06");
chef_set_last_updated (this, "2025-08-09");

View File

@@ -22,8 +22,7 @@ pl_python_speed_url_constructor (const char *url, const char *user_data)
void
pl_python_group_prelude (void)
{
use_this(pl_python_group);
chef_allow_gsr(pl_python_group);
chef_prep_this (pl_python_group, gsr);
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-07-14");
@@ -73,7 +72,7 @@ pl_python_check_unofficial_pkger (bool *poetry_exist, bool *pdm_exist, bool *uv_
/**
* @param[out] prog 返回 Python 的可用名,如果不可用,则返回 NULL
* @param[out] prog_name 返回 Python 的可用名,如果不可用,则返回 NULL
*/
void
pl_python_get_py_program_name (char **prog_name)

View File

@@ -7,8 +7,7 @@ def_target(pl_python_pip, "pip");
void
pl_python_pip_prelude (void)
{
use_this(pl_python_pip);
chef_allow_gsr(pl_python_pip);
chef_prep_this (pl_python_pip, gsr);
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_python_uv, "uv");
void
pl_python_uv_prelude (void)
{
use_this(pl_python_uv);
chef_allow_gsr(pl_python_uv);
chef_prep_this (pl_python_uv, gsr);
chef_set_created_on (this, "2024-12-11");
chef_set_last_updated (this, "2025-08-09");

View File

@@ -7,8 +7,7 @@ def_target(pl_r, "r/cran");
void
pl_r_prelude ()
{
use_this(pl_r);
chef_allow_gs(pl_r);
chef_prep_this (pl_r, gs);
chef_set_created_on (this, "2023-09-21");
chef_set_last_updated (this, "2025-08-10");

View File

@@ -14,8 +14,7 @@ def_target(pl_ruby, "gem/ruby/rb/rubygem/rubygems/bundler");
void
pl_ruby_prelude (void)
{
use_this(pl_ruby);
chef_allow_gsr(pl_ruby);
chef_prep_this (pl_ruby, gsr);
chef_set_created_on (this, "2023-08-29");
chef_set_last_updated (this, "2025-08-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_rust_cargo, "rust/cargo/crate/crates");
void
pl_rust_cargo_prelude (void)
{
use_this(pl_rust_cargo);
chef_allow_gsr(pl_rust_cargo);
chef_prep_this (pl_rust_cargo, gsr);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-07-22");

View File

@@ -10,8 +10,7 @@ def_target(pl_rust_rustup, "rustup");
void
pl_rust_rustup_prelude (void)
{
use_this(pl_rust_rustup);
chef_allow_gsr(pl_rust_rustup);
chef_prep_this (pl_rust_rustup, gsr);
chef_set_created_on (this, "2024-10-02");
chef_set_last_updated (this, "2025-08-07");