MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / sanitizeName

Function sanitizeName

app/cli/internal/policydevel/init.go:155–157  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

153}
154
155func sanitizeName(name string) string {
156 return strings.ToLower(strings.ReplaceAll(strings.TrimSpace(name), " ", "-"))
157}
158
159func writeFiles(dir string, files map[string]string, force bool) error {
160 if err := os.MkdirAll(dir, 0755); err != nil {

Callers 3

InitializeFunction · 0.85
loadAndProcessTemplatesFunction · 0.85
TestSanitizeNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSanitizeNameFunction · 0.68