chore: simplify workflows and unify tool logging and mail presentation
This commit is contained in:
1 parent
f4d96de79e
commit
c93f2bf8b2
40 files changed
+523
-1515
No files matched your search
@@ -2,6 +2,7 @@ package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitea-mail-templates/tools/logging"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
@@ -77,7 +78,7 @@ func runPreview(c *cli.Context) error {
|
||||
|
||||
preview.PrintDetailedSummary(result, folder, cfg)
|
||||
|
||||
fmt.Printf("\033[32m[I]\033[0m [Preview] Wrote %d themes x %d templates to %s\n",
|
||||
logging.Info("Preview", "Wrote %d themes x %d templates to %s",
|
||||
len(result.Themes), len(cfg.Templates), outputPath)
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user