Skip to content

Commit

Permalink
fix: use directory name for cd in change dir desc
Browse files Browse the repository at this point in the history
  • Loading branch information
mukezhz committed Dec 1, 2023
1 parent b49522d commit fc93abe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
GoVersionKEY = "goVersion"
DirectoryKEY = "directory"
)

const (
ProjectName = "Project Name"
ProjectModuleName = "Project Module"
Expand Down Expand Up @@ -216,6 +217,7 @@ func createProject(cmd *cobra.Command, args []string) {
break
case DirectoryKEY:
directory = q.Answer
break
}
}
} else {
Expand Down Expand Up @@ -294,9 +296,10 @@ func PrintFinalStepAfterProjectInitialization(data ModuleData) {
🏃 Start Project 🏃:
go run main.go app:serve
`, data.PackageName)
`, data.Directory)
color.Yellowf(output)
}

func generateFiles(templatePath string, targetRoot string, data ModuleData) error {
return fs.WalkDir(templatesFS, templatePath, func(path string, d fs.DirEntry, err error) error {
if err != nil {
Expand Down

0 comments on commit fc93abe

Please sign in to comment.