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

Function writeProfile

src/lib/credentials.ts:106–115  ·  view source on GitHub ↗
(
  profile: string,
  entry: ProfileEntry,
  options: CredentialsOptions = {},
)

Source from the content-addressed store, hash-verified

104}
105
106export function writeProfile(
107 profile: string,
108 entry: ProfileEntry,
109 options: CredentialsOptions = {},
110): void {
111 const path = resolvePath(options);
112 const file = readCredentialsFile(options);
113 file[profile] = { ...file[profile], ...entry };
114 writeCredentialsAtomic(path, file);
115}
116
117export function deleteProfile(profile: string, options: CredentialsOptions = {}): boolean {
118 const path = resolvePath(options);

Callers 5

usage.test.tsFile · 0.85
runConfigureFunction · 0.85
auth.test.tsFile · 0.85
config.test.tsFile · 0.85

Calls 3

resolvePathFunction · 0.85
readCredentialsFileFunction · 0.85
writeCredentialsAtomicFunction · 0.85

Tested by

no test coverage detected