mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-28 05:29:30 +08:00
Format code
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user