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

Function HomeDirPath

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

Source from the content-addressed store, hash-verified

1028}
1029
1030func HomeDirPath(subdir string) (string, error) {
1031 homeDir, err := os.UserHomeDir()
1032 if err != nil {
1033 return "", err
1034 }
1035
1036 newPath := filepath.Join(homeDir, subdir)
1037 return newPath, nil
1038}
1039
1040func StateDir() string {
1041 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected