UNPKG

kist

Version:

Lightweight Package Pipeline Processor with Plugin Architecture

24 lines 871 B
#!/usr/bin/env node 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"; (async () => { try { const parser = new ArgumentParser(); const cliOptions = parser.getAllFlags(); const configStore = ConfigStore.getInstance(); const configLoader = new ConfigLoader(); await configLoader.initialize(); const fileConfig = await configLoader.loadConfig(); configStore.merge(fileConfig); configStore.merge({ options: cliOptions }); const kist = new Kist(); await kist.run(); } catch (error) { console.error(`[CLI] An unexpected error occurred:`, error); process.exit(1); } })(); //# sourceMappingURL=cli.js.map