优化 group target ls 时的输出

This commit is contained in:
Aoran Zeng committed 2026-08-13 11:50:36 +08:00
1 parent 1896584064
commit 049796dabc
2 files changed
+12 -7

No files matched your search

+10 -5
View File
@@ -698,12 +698,17 @@ get_target (const char *input, TargetOp code, char *option)
{
int sub_count = xy_seq_len (target->sub_targets);
char *zh_msg = xy_strcat (4, input, " 由以下", xy_int2str(sub_count),
"个子目标组成,可使用 chsrc ls <sub-target> 分别查看\n");
char *en_msg = xy_strcat (4, input, " consists of the following ", xy_int2str(sub_count),
" sub targets, you can use `chsrc ls <sub-target>` to view each\n");
char *zh_msg = xy_strcat (3,
bdyellow(xy_strcat (4, input, " 由以下", xy_int2str(sub_count), "个子目标组成,可使用 chsrc ls <")),
bdpurple("sub-target"),
bdyellow("> 分别查看\n"));
chsrc_log (bdyellow(CHINESE ? zh_msg : en_msg));
char *en_msg = xy_strcat (3,
bdyellow(xy_strcat (4, input, " consists of the following ", xy_int2str(sub_count), " sub targets, you can use `chsrc ls <")),
bdpurple("sub-target"),
bdyellow("> to view each\n"));
chsrc_log (CHINESE ? zh_msg : en_msg);
for (size_t i=0; i<sub_count; i++)
{
+2 -2
View File
@@ -23,10 +23,10 @@ static MirrorSite_t CnbUvPython =
void
pl_uv_python_build_prelude (void)
{
chef_prep_sources_target (pl_uv_python_build);
chef_prep_this (pl_uv_python_build, gsr);
chef_set_recipe_created_on (this, "2026-08-02");
chef_set_recipe_last_updated (this, "2026-08-12");
chef_set_recipe_last_updated (this, "2026-08-13");
chef_set_chefs (this, 2, "@Mikachu2333", "@ccmywish");
chef_set_sauciers (this, 0);