add debug mode and update readme (#805)

Fix #456
Fix #207

Reviewed-on: https://gitea.com/gitea/tea/pulls/805
This commit is contained in:
Lunny Xiao
2025-09-10 19:10:02 +00:00
parent d531c6fdb0
commit 6c958eec99
5 changed files with 118 additions and 54 deletions

View File

@ -10,10 +10,12 @@ import (
"os"
"code.gitea.io/tea/cmd"
"code.gitea.io/tea/modules/debug"
)
func main() {
app := cmd.App()
app.Flags = append(app.Flags, debug.CliFlag())
err := app.Run(context.Background(), os.Args)
if err != nil {
// app.Run already exits for errors implementing ErrorCoder,