mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-12 23:27:34 +08:00
Remove chef_forbid_local_mode()
This commit is contained in:
parent
492ca4288c
commit
52004a1033
@ -51,19 +51,15 @@ chef_allow_local_mode (Target_t *target, Capability_t cap, const char *explain_z
|
||||
return;
|
||||
}
|
||||
|
||||
if (cap == CanNot)
|
||||
{
|
||||
target->cap_local_explain = xy_strdup (CHINESE ? "无法进行项目级换源" : "Unable to perform project-level source switching");
|
||||
return;
|
||||
}
|
||||
|
||||
target->cap_local_explain = xy_strdup (CHINESE ? explain_zh : explain_en);
|
||||
}
|
||||
|
||||
void
|
||||
chef_forbid_local_mode (Target_t *target)
|
||||
{
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
target->cap_local = CanNot;
|
||||
target->cap_local_explain = xy_strdup (CHINESE ? "无法进行项目级换源" : "Unable to perform project-level source switching");
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
chef_allow_user_define (Target_t *target)
|
||||
|
@ -21,7 +21,7 @@ pl_dart_flutter_prelude (void)
|
||||
"czyt", "czyt.go@gmail.com",
|
||||
"MadDogOwner", "xiaoran@xrgzs.top");
|
||||
|
||||
chef_forbid_local_mode (this);
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
@ -62,7 +62,7 @@ pl_js_nodejs_binary_prelude (void)
|
||||
chef_set_cooks (this, 0);
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
chef_forbid_local_mode (this);
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
@ -19,7 +19,7 @@ pl_js_nvm_prelude (void)
|
||||
chef_set_cooks (this, 0);
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
chef_forbid_local_mode (this);
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
@ -19,7 +19,7 @@ pl_python_pip_prelude (void)
|
||||
chef_set_cooks (this, 0);
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
chef_forbid_local_mode (this);
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
@ -24,7 +24,7 @@ pl_rust_rustup_prelude (void)
|
||||
"Yangmoooo", "yangmoooo@outlook.com",
|
||||
"Mikachu2333", "mikachu.23333@zohomail.com");
|
||||
|
||||
chef_forbid_local_mode (this);
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english (this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user