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

Function CredentialsPath

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

CredentialsPath returns ~/.pad/credentials.json.

()

Source from the content-addressed store, hash-verified

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

Callers 2

collectServerInfoFunction · 0.92
credentialsPathFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected