feat: autoformatter

This commit is contained in:
2025-03-08 23:51:17 +07:00
parent 9fd83b52e6
commit 0f5d61de48
7 changed files with 157 additions and 79 deletions

View File

@@ -4,6 +4,7 @@ import (
_ "embed"
"fmt"
"log"
"nto_cli/utils"
"os"
"path/filepath"
"strings"
@@ -50,4 +51,5 @@ func GenerateService(structName, mkPath string) {
log.Fatalf("Failed to execute template: %s", err)
}
log.Printf("Service for `%s` model is written: %s", structName, servicePath)
_ = utils.FormatFilesWithPrettier([]string{servicePath})
}