/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@basementuniverse/kanbn@0.10.0/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const minimist=require("minimist"),path=require("path"),utility=require("./src/utility");module.exports=async()=>{require("dotenv").config({path:path.join(__dirname,".env")});const i=process.argv[2]||"",e=require("auto-load")(path.join(__dirname,"routes")),r={},n=Object.entries(e).find((([e,r])=>-1!==r.commands.indexOf(i)));if(void 0===n)return void utility.error(`"${i}" is not a valid command`);({0:r.id,1:r.config}=n);const o=minimist(process.argv.slice(2),{boolean:["help"],alias:{help:["h"]}});if("help"===r.id||o.help){const i=(t=[...Object.values(e).map((i=>i.commands))].flat(),o._.filter((i=>-1!==t.indexOf(i))).pop()||"help");r.id=Object.keys(e).find((r=>-1!==e[r].commands.indexOf(i))),r.config=e.help}var t;await require(r.config.controller)(minimist(process.argv.slice(2),r.config.args),process.argv,r.id)};
//# sourceMappingURL=/sm/b064c4d5dbbca7d1056b45ec67a47ff0b0b0cb245742d8affe31612adebbd853.map