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

Function CredentialsPath

internal/cli/credentials.go:80–86  ·  view source on GitHub ↗

CredentialsPath returns ~/.pad/credentials.json.

()

Source from the content-addressed store, hash-verified

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

Callers 2

credentialsPathFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected