Format code

This commit is contained in:
Aoran Zeng
2024-11-22 11:43:18 +08:00
parent 6e7b4bf985
commit 526a7feb89
57 changed files with 525 additions and 489 deletions

View File

@@ -11,10 +11,10 @@
* @update 2024-06-07
* @note 目前仅有一个源
*/
static Source_t
wr_winget_sources[] = {
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
static Source_t wr_winget_sources[] =
{
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
};
def_sources_n(wr_winget);
@@ -25,7 +25,10 @@ wr_winget_getsrc (char *option)
chsrc_run ("winget source list", RunOpt_Default);
}
/* 参考https://mirrors.ustc.edu.cn/help/winget-source.html */
/**
* @consult https://mirrors.ustc.edu.cn/help/winget-source.html
*/
void
wr_winget_setsrc (char *option)
{
@@ -38,6 +41,7 @@ wr_winget_setsrc (char *option)
chsrc_conclude (&source);
}
void
wr_winget_resetsrc (char *option)
{