( configPath: string, runtimeFlags: RuntimeFlags )
| 373 | } |
| 374 | |
| 375 | function readAutoStorageCredentials( |
| 376 | configPath: string, |
| 377 | runtimeFlags: RuntimeFlags |
| 378 | ): Credentials { |
| 379 | try { |
| 380 | const credentials = readCredentialsFromKeyring(configPath, runtimeFlags); |
| 381 | |
| 382 | if (credentials !== null) { |
| 383 | return credentials; |
| 384 | } |
| 385 | } catch {} |
| 386 | |
| 387 | return readCredentialsFromFile(configPath); |
| 388 | } |
| 389 | |
| 390 | function writeFileStorageCredentials( |
| 391 | configPath: string, |
no test coverage detected