MCPcopy Create free account
hub / github.com/cozystack/talm / NormalizeTemplatePath

Function NormalizeTemplatePath

pkg/engine/engine.go:75–77  ·  view source on GitHub ↗

NormalizeTemplatePath converts OS-specific path separators to forward slash. Helm engine's Render() returns map keys with forward slashes regardless of OS, so input paths must be normalized to match.

(p string)

Source from the content-addressed store, hash-verified

73// Helm engine's Render() returns map keys with forward slashes regardless of OS,
74// so input paths must be normalized to match.
75func NormalizeTemplatePath(p string) string {
76 return filepath.ToSlash(p)
77}
78
79// debugPhase is a unified debug function that prints debug information based on the given stage and context,
80// then exits the program.

Callers 6

resolveTemplatePathsFunction · 0.92
RenderFunction · 0.85

Calls

no outgoing calls

Tested by 2