(configPath: string)
| 208 | } |
| 209 | |
| 210 | function createMissingCredentialsError(configPath: string): Error { |
| 211 | const error = new Error( |
| 212 | `ENOENT: no such file or directory, open '${configPath}'` |
| 213 | ); |
| 214 | Object.assign(error, { code: 'ENOENT' }); |
| 215 | return error; |
| 216 | } |
| 217 | |
| 218 | function writeCredentialsToFile(configPath: string, config: Credentials): void { |
| 219 | cliConfig.writeAuthConfigFile(configPath, config); |
no outgoing calls
no test coverage detected