UNPKG

@jashg91/gitpusher

Version:

🚀 AI-powered Git auto commit & push CLI with smart commit messages

12 lines (10 loc) • 300 B
import { getApiKeyFromDB, handleNoApiKey } from "./apikey.js"; export async function ensureApiKey() { let { apiKey } = await getApiKeyFromDB(); if (!apiKey) { await handleNoApiKey(); const result = await getApiKeyFromDB(); apiKey = result.apiKey; } return !!apiKey; }