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
-1
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gitea-mail-templates/tools/builder"
|
||||
"gitea-mail-templates/tools/logging"
|
||||
"github.com/urfave/cli/v2"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -36,7 +37,7 @@ func runCreate(c *cli.Context) error {
|
||||
if err := os.WriteFile(filepath.Join(dir, "theme.css"), []byte(css), 0644); err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Printf("[PASS] Created framework theme %s\n", name)
|
||||
logging.Info("CLI", "Created framework theme %s", name)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user