UNPKG

kist

Version:

Lightweight Package Pipeline Processor with Plugin Architecture

25 lines 948 B
#!/usr/bin/env node import { __awaiter } from "tslib"; import { ArgumentParser } from "./cli/ArgumentParser.js"; import { ConfigLoader } from "./core/config/ConfigLoader.js"; import { ConfigStore } from "./core/config/ConfigStore.js"; import { Kist } from "./kist.js"; (() => __awaiter(void 0, void 0, void 0, function* () { try { const parser = new ArgumentParser(); const cliOptions = parser.getAllFlags(); const configStore = ConfigStore.getInstance(); const configLoader = new ConfigLoader(); yield configLoader.initialize(); const fileConfig = yield configLoader.loadConfig(); configStore.merge(fileConfig); configStore.merge({ options: cliOptions }); const kist = new Kist(); yield kist.run(); } catch (error) { console.error(`[CLI] An unexpected error occurred:`, error); process.exit(1); } }))(); //# sourceMappingURL=cli.js.map