MCPcopy
hub / github.com/cli/cli / ResolveHomeDir

Function ResolveHomeDir

internal/skills/installer/installer.go:325–331  ·  view source on GitHub ↗

ResolveHomeDir returns the user's home directory, or "" on error.

()

Source from the content-addressed store, hash-verified

323
324// ResolveHomeDir returns the user's home directory, or "" on error.
325func ResolveHomeDir() string {
326 home, err := os.UserHomeDir()
327 if err != nil {
328 return ""
329 }
330 return home
331}

Callers 4

updateRunFunction · 0.92
buildScanTargetsFunction · 0.92
installRunFunction · 0.92
runLocalInstallFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected