UNPKG

tokyo-3

Version:

Worlds Best Pomodoro. 3rd Impact Imminent. Switching to Auxillary Power.

45 lines (44 loc) 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.endingAnimationCall = void 0; const _1 = require("."); const unit_03_1 = require("./unit-03"); const mari_the_beast_1 = require("./mari-the-beast"); const shinji_1 = require("./shinji"); const rei_1 = require("./rei"); const pen_1 = require("./pen"); const dss_1 = require("./dss"); const gendo_1 = require("./gendo"); const nerv_1 = require("./nerv"); const seele_1 = require("./seele"); const node_notifier_1 = require("node-notifier"); const kaworu_1 = require("./kaworu"); const asuka_1 = require("./asuka"); const endingAnimationCall = (argv) => { function empty() { _1.rl.write("\u001B[?25h"); console.clear(); (0, node_notifier_1.notify)("🚨TIME🚨"); process.exit(); } let lookup = { beast: () => (0, mari_the_beast_1.mari)(), angel: () => (0, unit_03_1.unit03)(), shinji: () => (0, shinji_1.shinji)(), rei: () => (0, rei_1.rei)(), pen: () => (0, pen_1.pen)(), nerv: () => (0, nerv_1.nerv)(), gendo: () => (0, gendo_1.gendo)(), dss: () => (0, dss_1.dss)(), asuka: () => (0, asuka_1.asuka)(), red: () => (0, unit_03_1.unit03)(), seele: () => (0, seele_1.seele)(), kaworu: () => (0, kaworu_1.kaworu)(), empty: () => empty() }; // have to jpjs or we get unexpected token error let k = argv.c ? argv.c : JSON.parse(JSON.stringify("empty")); let animation = lookup[k]; return animation(); }; exports.endingAnimationCall = endingAnimationCall;