MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / NormalizeShellExecutable

Function NormalizeShellExecutable

skills/security.go:65–71  ·  view source on GitHub ↗
(executable *string)

Source from the content-addressed store, hash-verified

63}
64
65func NormalizeShellExecutable(executable *string) string {
66 if executable == nil {
67 return ""
68 }
69 normalized := strings.TrimSpace(strings.ToLower(filepath.Base(strings.ReplaceAll(*executable, "\\", "/"))))
70 return normalized
71}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected