Update README.md.

This commit is contained in:
go-jet 2019-07-14 14:30:39 +02:00
parent e0327bef69
commit 518ff49a77
2 changed files with 97 additions and 57 deletions

View file

@ -51,8 +51,10 @@ func Generate(destDir string, genData DBConnection) error {
fmt.Println(" FOUND", len(schemaInfo.TableInfos), " table(s), ", len(schemaInfo.EnumInfos), " enum(s)")
schemaGenPath := path.Join(destDir, genData.DBName, genData.SchemaName)
fmt.Println("Destination directory:", schemaGenPath)
fmt.Println("Cleaning up destination directory...")
err = utils.CleanUpGeneratedFiles(path.Join(destDir, genData.DBName, genData.SchemaName))
err = utils.CleanUpGeneratedFiles(schemaGenPath)
if err != nil {
return err