(rcPath: string)
| 20 | |
| 21 | // Generic function to retrieve key from .lingodotdevrc file |
| 22 | function getKeyFromRc(rcPath: string): string | undefined { |
| 23 | const rc = getRc(); |
| 24 | const result = _.get(rc, rcPath); |
| 25 | return typeof result === "string" ? result : undefined; |
| 26 | } |
| 27 | |
| 28 | export function getGroqKey() { |
| 29 | return getGroqKeyFromEnv() || getGroqKeyFromRc(); |
no test coverage detected