(
profile: string,
entry: ProfileEntry,
options: CredentialsOptions = {},
)
| 104 | } |
| 105 | |
| 106 | export 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 | |
| 117 | export function deleteProfile(profile: string, options: CredentialsOptions = {}): boolean { |
| 118 | const path = resolvePath(options); |
no test coverage detected