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

Function HomeDirPath

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

Source from the content-addressed store, hash-verified

979}
980
981func HomeDirPath(subdir string) (string, error) {
982 homeDir, err := os.UserHomeDir()
983 if err != nil {
984 return "", err
985 }
986
987 newPath := filepath.Join(homeDir, subdir)
988 return newPath, nil
989}
990
991func StateDir() string {
992 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected