From 10332977425cc884df2c2423548da6b6da9444df Mon Sep 17 00:00:00 2001 From: niqdev Date: Tue, 10 Oct 2023 08:07:33 +0100 Subject: [PATCH] update local pretty name --- internal/command/common/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/command/common/template.go b/internal/command/common/template.go index b23a2c3..1aa4ef5 100644 --- a/internal/command/common/template.go +++ b/internal/command/common/template.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/hckops/hckctl/pkg/template" + "github.com/hckops/hckctl/pkg/util" ) func NewGitSourceOptions(cacheDir string, revision string) *template.GitSourceOptions { @@ -30,5 +31,5 @@ func PrettyName[T template.TemplateType](info *template.TemplateInfo[T], cacheDi if info.SourceType == template.Git { return fmt.Sprintf("%s@%s", PrettyPath(cacheDir, info.Path), info.Revision[:7]) } - return fmt.Sprintf("%s@%s", strings.ToLower(name), info.Revision) + return fmt.Sprintf("%s@%s", util.ToLowerKebabCase(name), info.Revision) }