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

Function HomeDirPath

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

Source from the content-addressed store, hash-verified

799}
800
801func HomeDirPath(subdir string) (string, error) {
802 homeDir, err := os.UserHomeDir()
803 if err != nil {
804 return "", err
805 }
806
807 newPath := filepath.Join(homeDir, subdir)
808 return newPath, nil
809}
810
811func StateDir() string {
812 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected