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

Function HomeDirPath

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

Source from the content-addressed store, hash-verified

713}
714
715func HomeDirPath(subdir string) (string, error) {
716 homeDir, err := os.UserHomeDir()
717 if err != nil {
718 return "", err
719 }
720
721 newPath := filepath.Join(homeDir, subdir)
722 return newPath, nil
723}
724
725func StateDir() string {
726 return ghConfig.StateDir()

Callers 1

SshDirMethod · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected