🚀 Main function

This commit is contained in:
ful1e5 2020-08-27 14:37:59 +05:30
parent 72b2cd7bb7
commit 7d6bf0aad3

View file

@ -4,7 +4,7 @@ import { renderCursors, spinner } from "common";
import { generateConfigs } from "./helpers/schema"; import { generateConfigs } from "./helpers/schema";
import { colorSchemes, bitmapsPath } from "./color"; import { colorSchemes, bitmapsPath } from "./color";
(async () => { const main = async () => {
const prefix = "Bibata-Round"; const prefix = "Bibata-Round";
const configs = generateConfigs(colorSchemes, prefix); const configs = generateConfigs(colorSchemes, prefix);
@ -20,11 +20,13 @@ import { colorSchemes, bitmapsPath } from "./color";
spinner.succeed(); spinner.succeed();
} }
console.log(`🎉 Bitmaps stored at ${bitmapsPath}`); console.log(`🎉 Bitmaps stored at ${chalk.greenBright(bitmapsPath)}`);
} catch (error) { } catch (error) {
spinner.fail(); spinner.fail();
console.error(error); console.error(error);
} finally { } finally {
process.exit(0); process.exit(0);
} }
})(); };
main();