add debug mode and update readme

This commit is contained in:
Lunny Xiao
2025-08-26 11:57:12 -07:00
parent 8876fe3cb8
commit e3ecf9b94a
5 changed files with 114 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,