()
| 50 | } |
| 51 | |
| 52 | function errorCode(error: unknown): string | undefined { |
| 53 | return isRecord(error) && typeof error.code === 'string' ? error.code : undefined; |
| 54 | } |
| 55 | |
| 56 | function onePasswordInstallInstructions(): string[] { |
| 57 | return [ |
| 58 | 'Install 1Password CLI (`op`). On macOS with Homebrew: `brew install 1password-cli`.', |
| 59 | `Linux and manual install options: ${ONE_PASSWORD_CLI_DOCS}`, |
| 60 | 'After installing, verify with `op --version`, then sign in with `op signin`.', |
| 61 | ]; |
no outgoing calls
no test coverage detected