UNPKG

mongodb-rag-ingest

Version:

MongoDB Ingest CLI for the MongoDB Chatbot Framework.

25 lines 865 B
#! /usr/bin/env node "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const yargs_1 = __importDefault(require("yargs")); require("dotenv/config"); function commandDir(argv, directory, options) { return argv.commandDir(directory, { extensions: ["js"], exclude: /^(?:index|.*\.test)\.js$/, // .map, .d.ts excluded by 'extensions' property visit(commandModule) { return commandModule.default; }, ...options, }); } async function main() { const argv = commandDir(yargs_1.default.help(), "commands").demandCommand(); // Accessing this property executes CLI argv.argv; } main().catch(console.error); //# sourceMappingURL=main.js.map