SHA256
initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""CLI 主入口: 注册所有子命令"""
|
||||
|
||||
import typer
|
||||
|
||||
from tjhlp.commands import labels, notify, orgs, repos, setup, stats, users, webhooks
|
||||
|
||||
app = typer.Typer(
|
||||
name="tjhlp",
|
||||
help="同济大学高级语言程序设计课程 Gitea 答疑平台管理工具",
|
||||
no_args_is_help=True,
|
||||
)
|
||||
|
||||
app.add_typer(setup.app, name="setup", help="初始化与环境配置")
|
||||
app.add_typer(users.app, name="users", help="用户管理")
|
||||
app.add_typer(orgs.app, name="orgs", help="组织与团队管理")
|
||||
app.add_typer(repos.app, name="repos", help="仓库管理")
|
||||
app.add_typer(webhooks.app, name="webhooks", help="Webhook 管理")
|
||||
app.add_typer(labels.app, name="labels", help="Label 管理")
|
||||
app.add_typer(stats.app, name="stats", help="Issue 统计")
|
||||
app.add_typer(notify.app, name="notify", help="邮件通知")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app()
|
||||
Reference in New Issue
Block a user