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

@@ -5,6 +5,7 @@ import (
"fmt"
"log"
"nto_cli/entities"
"nto_cli/utils"
"os"
"path/filepath"
"strings"
@@ -63,6 +64,7 @@ func GenerateScheme(structName string, fields []entities.Field, mkPath string) {
log.Fatalf("Failed to execute template: %s", err)
}
log.Printf("Scheme for `%s` model is written: %s", structName, schemeFilePath)
_ = utils.FormatFilesWithPrettier([]string{schemeFilePath})
}
func processDependencies(fields []entities.Field) []Dependency {