mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 18:30:33 +07:00
feat: autoformatter
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user