mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-07 04:12:55 +02:00
add debug mode and update readme
This commit is contained in:
2
main.go
2
main.go
@ -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,
|
||||
|
Reference in New Issue
Block a user