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

Function HomeDirPath

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

Source from the content-addressed store, hash-verified

768}
769
770func HomeDirPath(subdir string) (string, error) {
771 homeDir, err := os.UserHomeDir()
772 if err != nil {
773 return "", err
774 }
775
776 newPath := filepath.Join(homeDir, subdir)
777 return newPath, nil
778}
779
780func StateDir() string {
781 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected