Do not titleize the template folder name

Because is not the real name and can not be used with -t
dev
Víctor Zamanillo 2020-09-05 10:57:07 +02:00
parent 4b368f30a0
commit fccc4520b1
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func (r *Runner) listAvailableTemplates() {
r.templatesConfig.TemplatesDirectory,
func(path string, d *godirwalk.Dirent) error {
if d.IsDir() && path != r.templatesConfig.TemplatesDirectory {
gologger.Silentf("\n%s:\n\n", r.colorizer.Bold(r.colorizer.BgBrightBlue(strings.Title(d.Name()))).String())
gologger.Silentf("\n%s:\n\n", r.colorizer.Bold(r.colorizer.BgBrightBlue(d.Name())).String())
} else if strings.HasSuffix(path, ".yaml") {
r.logAvailableTemplate(path)
}