From a5497a916b3f45c57b675922102f5bdd23dcba54 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 8 Jun 2024 13:14:14 +0800 Subject: [PATCH] Add new command 'issue' --- src/chsrc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/chsrc.c b/src/chsrc.c index 7b4e40b..f2c0404 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -2291,6 +2291,19 @@ cli_print_help () } } +void +cli_print_issues () +{ + puts ( + "chsrc issues: Gitee和GitHub两边同时接受issue\n\n" + "- https://gitee.com/RubyMetric/chsrc/issues\n" + "- https://github.com/RubyMetric/chsrc/issues\n\n" + + "目前支持reset命令的源: https://gitee.com/RubyMetric/chsrc/issues/I9V6EV\n" + "目前支持-local选项的源: https://gitee.com/RubyMetric/chsrc/issues/I9V5I0\n" + "已收录的镜像站: https://gitee.com/RubyMetric/chsrc/wikis\n" + ); +} /** @@ -2600,6 +2613,16 @@ main (int argc, char const *argv[]) return 0; } + /* chsrc issue */ + else if (xy_streql (command, "issue") || + xy_streql (command, "issues") || + xy_streql (command, "isue") || + xy_streql (command, "i")) + { + cli_print_issues (); + return 0; + } + /* 不支持的命令 */ else {