Files
GiteaMailTemplates/tools/tools.go
T
KenanZhu fec3ace600
Release / Validate Templates (push) Canceled after 0s
Release / Package & Release (push) Canceled after 0s
Release / Update Latest Release Documentation (push) Canceled after 0s
chore: migrate mail themes to shared framework and locked upstream inputs
2026-10-09 18:34:36 +08:00

33 lines
632 B
Go

package main
import (
"fmt"
"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 {
fmt.Fprintf(os.Stderr, "\033[31m[E]\033[0m [CLI] %v\n", err)
os.Exit(1)
}
}