mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-02 01:32:45 +08:00
Test ruby feat
This commit is contained in:
parent
ad9599a612
commit
b6cf0dedee
@ -376,7 +376,9 @@ get_target (const char *input, TargetOp code, char *option)
|
|||||||
}
|
}
|
||||||
else if (TargetOp_List_Source==code)
|
else if (TargetOp_List_Source==code)
|
||||||
{
|
{
|
||||||
chsrc_info (xy_strjoin (3, "下方 code 列,可用于指定使用某源,请使用 chsrc set ", input, " <code>\n"));
|
say (to_boldblue(xy_strjoin (3, "指定使用某源,请使用 chsrc set ", input, " <code>\n")));
|
||||||
|
say (to_boldgreen("Available Sources: \n"));
|
||||||
|
// chsrc_info (xy_strjoin (3, "下方 code 列,可用于指定使用某源,请使用 chsrc set ", input, " <code>\n"));
|
||||||
printf (" %-14s%-35s%-43s ", "code", "镜像站简写", "换源URL"); puts ("镜像站名称");
|
printf (" %-14s%-35s%-43s ", "code", "镜像站简写", "换源URL"); puts ("镜像站名称");
|
||||||
puts ("--------- -------------- ----------------------------------------------- ---------------------");
|
puts ("--------- -------------- ----------------------------------------------- ---------------------");
|
||||||
cli_print_target_available_sources (target->sources, target->sources_n);
|
cli_print_target_available_sources (target->sources, target->sources_n);
|
||||||
|
@ -92,8 +92,8 @@ pl_ruby_setsrc (char *option)
|
|||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
chsrc_say_lastly (&source, chsrc_type);
|
chsrc_say_lastly (&source, chsrc_type);
|
||||||
// puts ("");
|
|
||||||
// chsrc_note2 ("维护者提醒您: Ruby的镜像源目前仅有 腾讯软件源,RubyChina,华为开源镜像站 实现正确");
|
// chsrc_note2 ("Ruby的镜像源目前仅有 腾讯软件源,RubyChina 实现正确");
|
||||||
// chsrc_note2 ("而其它如Tuna,Bfsu,Ali目前都实现的有问题,请勿使用");
|
// chsrc_note2 ("而其它如Tuna,Bfsu,Ali目前都实现的有问题,请勿使用");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,4 +103,22 @@ pl_ruby_resetsrc (char *option)
|
|||||||
pl_ruby_setsrc (ChsrcTypeReset);
|
pl_ruby_setsrc (ChsrcTypeReset);
|
||||||
}
|
}
|
||||||
|
|
||||||
def_target_full(pl_ruby);
|
|
||||||
|
FeatInfo
|
||||||
|
pl_ruby_feat (char *option)
|
||||||
|
{
|
||||||
|
FeatInfo fi = {0};
|
||||||
|
|
||||||
|
fi.can_get = true;
|
||||||
|
fi.can_reset = true;
|
||||||
|
|
||||||
|
fi.locally = "gem 不支持; bundler 支持 (From v0.1.6)";
|
||||||
|
fi.can_english = false;
|
||||||
|
fi.can_user_define = true;
|
||||||
|
|
||||||
|
fi.note = "华为开源镜像站提供的源可能存在问题";
|
||||||
|
return fi;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def_target_gsrf(pl_ruby);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user