MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CredentialsPath

Function CredentialsPath

internal/cli/credentials.go:82–88  ·  view source on GitHub ↗

CredentialsPath returns ~/.pad/credentials.json.

()

Source from the content-addressed store, hash-verified

80
81// CredentialsPath returns ~/.pad/credentials.json.
82func CredentialsPath() (string, error) {
83 homeDir, err := os.UserHomeDir()
84 if err != nil {
85 return "", fmt.Errorf("get home directory: %w", err)
86 }
87 return filepath.Join(homeDir, ".pad", "credentials.json"), nil
88}
89
90// credentialsPath is retained for internal call sites.
91func credentialsPath() (string, error) {

Callers 2

credentialsPathFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected