mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-13 10:47:14 +08:00
Add new command 'issue'
This commit is contained in:
parent
e56e4fa02b
commit
a5497a916b
23
src/chsrc.c
23
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;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user