mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 13:20:44 +08:00
Change default source selection name from 'default' to 'first'
This commit is contained in:
parent
af3cc07730
commit
7617a08373
|
@ -78,9 +78,9 @@ query_mirror_exist (SourceInfo *sources, size_t size, char *target, char *input)
|
|||
xy_success (xy_strjoin (4, sources[0].mirror->name, " 是 ", target, " 目前唯一可用镜像站,感谢他们的慷慨支持"));
|
||||
}
|
||||
|
||||
if (xy_streql ("default", input) || xy_streql ("def", input))
|
||||
if (xy_streql ("first", input))
|
||||
{
|
||||
puts ("默认使用维护团队测速第一的源");
|
||||
puts ("使用维护团队测速第一的源");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -2092,7 +2092,7 @@ usage[] = {
|
|||
"cesu <target> 对该软件所有源测速",
|
||||
"get <target> 查看当前软件的源使用情况",
|
||||
"set <target> 换源,自动测速后挑选最快源",
|
||||
"set <target> def(ault) 换源,默认使用维护团队测速第一的源",
|
||||
"set <target> first 换源,使用维护团队测速第一的源",
|
||||
"set <target> <mirror> 换源,指定使用某镜像站\n"
|
||||
};
|
||||
|
||||
|
@ -2308,7 +2308,7 @@ get_target (const char *input, TargetOp code, char *option)
|
|||
}
|
||||
else if (TargetOp_List_Source==code)
|
||||
{
|
||||
xy_info (xy_strjoin (3,"chsrc: 对 ", input ," 支持以下镜像站,荣耀均归属于这些站点,以及它们的开发/维护者们"));
|
||||
xy_info (xy_strjoin (3, "chsrc: 对 ", input ," 支持以下镜像站"));
|
||||
puts (xy_str_to_yellow (xy_strjoin (3, "chsrc: 下方 code 列,可用于指定使用某源,请使用 chsrc set ", input, " <code>")));
|
||||
printf ("%-14s%-35s%-45s ", "code", "服务商缩写", "服务源URL"); puts("服务商名称");
|
||||
puts ("--------------------------------------------------------------------------------------------------------");
|
||||
|
|
Loading…
Reference in New Issue
Block a user