MCPcopy Index your code
hub / github.com/cli/cli / HomeDirPath

Function HomeDirPath

internal/config/config.go:702–710  ·  view source on GitHub ↗
(subdir string)

Source from the content-addressed store, hash-verified

700}
701
702func HomeDirPath(subdir string) (string, error) {
703 homeDir, err := os.UserHomeDir()
704 if err != nil {
705 return "", err
706 }
707
708 newPath := filepath.Join(homeDir, subdir)
709 return newPath, nil
710}
711
712func StateDir() string {
713 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected