cli/pkg/cmd/attestation/test/path.go
Kynan Ware 8f7e98c6f6 Add godoc comments to exported symbols in pkg/cmd/attestation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-04 15:53:47 -07:00

14 lines
294 B
Go

package test
import (
"runtime"
"strings"
)
// NormalizeRelativePath converts a POSIX-style relative path to the OS-native format.
func NormalizeRelativePath(posixPath string) string {
if runtime.GOOS == "windows" {
return strings.ReplaceAll(posixPath, "/", "\\")
}
return posixPath
}