Update main using rawstr4c v1.0.0

This commit is contained in:
Aoran Zeng 2025-08-09 10:46:45 +08:00
parent 3200e2ab3b
commit ee3bef5eab
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
3 changed files with 12 additions and 12 deletions

View File

@ -348,7 +348,7 @@ void
cli_print_version ()
{
char *str = xy_str_gsub (RAWSTR_chsrc_for_v, "@ver@", Chsrc_Version);
print (str);
println (str);
}
@ -360,15 +360,14 @@ cli_print_help ()
const char *raw = CHINESE ? RAWSTR_chsrc_USAGE_CHINESE : RAWSTR_chsrc_USAGE_ENGLISH;
char *str = xy_str_gsub (raw, "@ver@", version_string);
str = xy_str_gsub (str, "@url@", Chsrc_Maintain_URL);
print (str);
println (str);
}
void
cli_print_issues ()
{
print (RAWSTR_chsrc_for_issue);
println (RAWSTR_chsrc_for_issue);
/*
if (chsrc_check_program ("gh"))

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
! Config Authors: Aoran Zeng <ccmywish@qq.com>
! Contributors : Nil Null <nil@null.org>
! Created On : <2025-07-22>
! Last Modified : <2025-08-08>
! Last Modified : <2025-08-09>
! ---------------------------------------------------------- -->
# [rawstr4c] input for chsrc
@ -71,7 +71,7 @@
维护:
邀请您担任 Chef, 为用户把关您熟悉的 recipe
源代码地址: @url@
源代码地址: https://github.com/RubyMetric/chsrc
成为维护者: https://github.com/RubyMetric/chsrc/issues/130
```
@ -154,6 +154,7 @@ Written by Aoran Zeng, Heng Guo and contributors. (See chsrc-main.c)
```
我们同时在 GitHub 和 Gitee 接受 issue 和 Bug 报告:
- https://github.com/RubyMetric/chsrc/issues
- https://gitee.com/RubyMetric/chsrc/issues