@bastion/tesseract
Version:
The heart and soul of the Bastion bot.
32 lines (25 loc) • 628 B
JavaScript
const args = process.argv.slice(2);
const command = args[0];
/**
* @type {string}
*/
let script;
switch (command) {
case "commands":
script = await import("../dist/scripts/commands.js");
script.exec();
break;
case "publish":
script = await import("../dist/scripts/publish.js");
script.exec();
break;
case "unpublish":
script = await import("../dist/scripts/unpublish.js");
script.exec();
break;
default:
console.error(`command \`${ command }\` not found`);
process.exitCode = 1;
break;
}