Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324#!/usr/bin/env bun
import { runCli } from "./src/main.ts";import { isInteractionNotAllowedError } from "./src/shared/errors.ts";
function readRuntimeArgv(): string[] { // Bun is absent when vitest runs this under Node. return ("Bun" in globalThis ? Bun.argv : process.argv).slice(2);}
await runCli(readRuntimeArgv()).catch((error: unknown) => { if (isInteractionNotAllowedError(error)) { console.error( "Error: Bun Secrets could not access the OS credential manager in this environment. " + "Run this CLI in a normal local terminal session with Keychain/libsecret/Credential Manager access.", ); process.exit(1); }
const message = error instanceof Error ? error.message : String(error); console.error(`Error: ${message}`); process.exit(1);});