Files
GiteaMailTemplates/tools/tools.go
T
KenanZhu c93f2bf8b2
Release / Validate Templates (push) Successful in 2m55s
Release / Package & Release (push) Skipped
Release / Remind to Update Release Documentation (push) Skipped
chore: simplify workflows and unify tool logging and mail presentation
2026-10-10 14:54:40 +08:00

33 lines
634 B
Go

package main
import (
"gitea-mail-templates/tools/logging"
"os"
"github.com/urfave/cli/v2"
cmds "gitea-mail-templates/tools/cli"
)
func main() {
app := &cli.App{
Name: "tools",
Usage: "Gitea Mail Templates CLI — manage and preview email template themes",
UsageText: "tools <command> [args...] [--flags]",
Commands: []*cli.Command{
cmds.UpstreamCommand(),
cmds.BuildCommand(),
cmds.ListCommand(),
cmds.CreateCommand(),
cmds.DeleteCommand(),
cmds.PreviewCommand(),
cmds.DevCommand(),
},
}
if err := app.Run(os.Args); err != nil {
logging.Fatal("CLI", "%v", err)
os.Exit(1)
}
}