MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / readCredentialsFile

Function readCredentialsFile

src/lib/credentials.ts:92–96  ·  view source on GitHub ↗
(options: CredentialsOptions = {})

Source from the content-addressed store, hash-verified

90}
91
92export function readCredentialsFile(options: CredentialsOptions = {}): CredentialsFile {
93 const path = resolvePath(options);
94 if (!existsSync(path)) return {};
95 return parseCredentials(readFileSync(path, 'utf-8'));
96}
97
98export function readProfile(
99 profile: string,

Callers 4

readProfileFunction · 0.85
writeProfileFunction · 0.85
deleteProfileFunction · 0.85

Calls 4

resolvePathFunction · 0.85
existsSyncFunction · 0.85
parseCredentialsFunction · 0.85
readFileSyncFunction · 0.85

Tested by

no test coverage detected