Skip to content

Commit

Permalink
update local pretty name
Browse files Browse the repository at this point in the history
  • Loading branch information
niqdev committed Oct 10, 2023
1 parent e1b2ef9 commit 1033297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/command/common/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}

0 comments on commit 1033297

Please sign in to comment.