chsrc/src/recipe/lang/NuGet.c
2025-07-14 23:44:21 +08:00

65 lines
1.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-10>
* Last Modified : <2024-08-09>
* ------------------------------------------------------------*/
static MirrorSite_t NugetOrg =
{
IS_UpstreamProvider,
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
{SKIP, ToFill, ToFill, NULL, ROUGH}
};
/**
* @update 2024-04-18
* @note {
* 暂时未实现该换源功能,可参照
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
* }
*/
static Source_t pl_nuget_sources[] =
{
{&UpstreamProvider, NULL, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/", NULL},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
};
def_sources_n(pl_nuget);
void
pl_nuget_getsrc (char *option)
{
chsrc_error ("暂时无法查看NuGet源若有需求请提交issue");
}
void
pl_nuget_setsrc (char *option)
{
chsrc_error ("暂时无法为NuGet换源若有需求请提交issue");
}
Feature_t
pl_nuget_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NA;
f.can_english = false;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_gsf(pl_nuget);