MCPcopy Create free account
hub / github.com/cli/cli / ResolveHomeDir

Function ResolveHomeDir

internal/skills/installer/installer.go:329–335  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected