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

Function ResolveHomeDir

internal/skills/installer/installer.go:327–333  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected