UNPKG

@qnet/cli

Version:

A powerful command-line interface tool designed for managing and interacting with Quantex projects and services efficiently. Built with modern features and smooth integrations to streamline your workflow.

3 lines (2 loc) 4.62 kB
#!/usr/bin/env node const a0_0x1d1500=a0_0x4607;(function(_0x5648eb,_0x186ee1){const _0x3cfc03=a0_0x4607,_0x52bfe9=_0x5648eb();while(!![]){try{const _0x1a12d6=-parseInt(_0x3cfc03(0x1c4))/0x1*(parseInt(_0x3cfc03(0x1c6))/0x2)+-parseInt(_0x3cfc03(0x1bc))/0x3*(-parseInt(_0x3cfc03(0x1bb))/0x4)+parseInt(_0x3cfc03(0x1de))/0x5*(-parseInt(_0x3cfc03(0x1be))/0x6)+-parseInt(_0x3cfc03(0x1e2))/0x7+parseInt(_0x3cfc03(0x1d8))/0x8*(-parseInt(_0x3cfc03(0x1d0))/0x9)+parseInt(_0x3cfc03(0x1cd))/0xa*(parseInt(_0x3cfc03(0x1e0))/0xb)+parseInt(_0x3cfc03(0x1db))/0xc;if(_0x1a12d6===_0x186ee1)break;else _0x52bfe9['push'](_0x52bfe9['shift']());}catch(_0x17474d){_0x52bfe9['push'](_0x52bfe9['shift']());}}}(a0_0xa206,0x4176c));import{Command}from'commander';import a0_0x484a81 from'fs';import a0_0x47bdb7 from'path';function a0_0x4607(_0x5aa818,_0x4c25c7){const _0xa206cb=a0_0xa206();return a0_0x4607=function(_0x4607c5,_0x45e33d){_0x4607c5=_0x4607c5-0x1b9;let _0x427bc4=_0xa206cb[_0x4607c5];return _0x427bc4;},a0_0x4607(_0x5aa818,_0x4c25c7);}import a0_0x170cf2 from'chalk';import{fileURLToPath,pathToFileURL}from'url';import{loadSession}from'../utils/session.js';import a0_0x521130 from'chalk';const __filename=fileURLToPath(import.meta[a0_0x1d1500(0x1cb)]),__dirname=a0_0x47bdb7[a0_0x1d1500(0x1bd)](__filename);function centerText(_0x50c5a6,_0x23f0ad){const _0x33cc76=a0_0x1d1500,_0x54fd9f=_0x50c5a6['length'];if(_0x54fd9f>=_0x23f0ad)return _0x50c5a6;const _0xd9975c=Math[_0x33cc76(0x1d4)]((_0x23f0ad-_0x54fd9f)/0x2),_0x3d3b6c=_0x23f0ad-_0x54fd9f-_0xd9975c;return'\x20'[_0x33cc76(0x1e5)](_0xd9975c)+_0x50c5a6+'\x20'['repeat'](_0x3d3b6c);}const session=loadSession();if(session){const response=await fetch(a0_0x1d1500(0x1d3)+encodeURIComponent(session[a0_0x1d1500(0x1ba)]));if(response['status']===0xc8)console[a0_0x1d1500(0x1d5)](a0_0x170cf2['bgGray'][a0_0x1d1500(0x1c5)]('\x20'+'─'[a0_0x1d1500(0x1e5)](0x30)+'\x20')),console['log'](a0_0x170cf2[a0_0x1d1500(0x1e4)][a0_0x1d1500(0x1c5)]('\x20'+centerText('Authentication',0x30)+'\x20')),console[a0_0x1d1500(0x1d5)](a0_0x170cf2[a0_0x1d1500(0x1e4)]('\x20'+centerText(a0_0x1d1500(0x1ca)+session['guildName'],0x30)+'\x20')),console[a0_0x1d1500(0x1d5)](a0_0x170cf2[a0_0x1d1500(0x1e4)]['bold']('\x20'+'─'[a0_0x1d1500(0x1e5)](0x30)+'\x20')),console[a0_0x1d1500(0x1d5)]('\x0a');else response['status']===0x193&&(console['log'](a0_0x170cf2[a0_0x1d1500(0x1e1)][a0_0x1d1500(0x1c5)]('\x20'+'─'[a0_0x1d1500(0x1e5)](0x30)+'\x20')),console[a0_0x1d1500(0x1d5)](a0_0x170cf2[a0_0x1d1500(0x1e1)][a0_0x1d1500(0x1c5)]('\x20'+centerText(a0_0x1d1500(0x1d1),0x30)+'\x20')),console[a0_0x1d1500(0x1d5)](a0_0x170cf2['bgRed']('\x20'+centerText(a0_0x1d1500(0x1da),0x30)+'\x20')),console['log'](a0_0x170cf2[a0_0x1d1500(0x1e1)][a0_0x1d1500(0x1c5)]('\x20'+'─'[a0_0x1d1500(0x1e5)](0x30)+'\x20')),console[a0_0x1d1500(0x1d5)]('\x0a'));}function a0_0xa206(){const _0x35d18d=['913885DFluBH','join','bgGray','repeat','readdirSync','authCode','1433636MVZaHk','3FuZVIx','dirname','204HZTazg','utf-8','.js','version','command','href','1sPzNNn','bold','532540XclXyP','Your\x20main\x20control\x20center\x20for\x20all\x20of\x20your\x20Quantex\x20projects.','action','package.json','You\x20are\x20logged\x20in\x20as\x20','url','endsWith','103750QNHhzr','filter','commands','423JwQDQu','Authentication','description','https://network.quantexcorp.net/api/utils/authenticate?authCode=','floor','log','readFileSync','argv','83608oZnuvQ','name','Your\x20session\x20data\x20has\x20expired\x20and\x20is\x20invalid!','10224600XJHwvC','qnet','bgBlue','70540fPSSWo','parse','451pPWRBP','bgRed'];a0_0xa206=function(){return _0x35d18d;};return a0_0xa206();}async function runCLI(){const _0xd3db10=a0_0x1d1500,_0xfd9afd=new Command(),_0x8874fb=a0_0x47bdb7[_0xd3db10(0x1e3)](__dirname,'..',_0xd3db10(0x1c9)),_0x17f72a=JSON[_0xd3db10(0x1df)](a0_0x484a81[_0xd3db10(0x1d6)](_0x8874fb,_0xd3db10(0x1bf)));_0xfd9afd[_0xd3db10(0x1d9)](_0xd3db10(0x1dc))[_0xd3db10(0x1d2)](''+a0_0x170cf2[_0xd3db10(0x1dd)](_0xd3db10(0x1c7)))[_0xd3db10(0x1c1)](_0x17f72a[_0xd3db10(0x1c1)]);const _0x3524c8=a0_0x47bdb7[_0xd3db10(0x1e3)](__dirname,'..',_0xd3db10(0x1cf)),_0x1679fd=a0_0x484a81[_0xd3db10(0x1b9)](_0x3524c8)[_0xd3db10(0x1ce)](_0x1cd563=>_0x1cd563[_0xd3db10(0x1cc)](_0xd3db10(0x1c0)));for(const _0xe23dfb of _0x1679fd){const _0x35debb=a0_0x47bdb7['join'](_0x3524c8,_0xe23dfb),_0x5a89c8=await import(pathToFileURL(_0x35debb)[_0xd3db10(0x1c3)]);_0xfd9afd[_0xd3db10(0x1c2)](_0x5a89c8[_0xd3db10(0x1d9)])[_0xd3db10(0x1d2)](_0x5a89c8[_0xd3db10(0x1d2)])[_0xd3db10(0x1c8)](_0x5a89c8[_0xd3db10(0x1c8)]);}_0xfd9afd[_0xd3db10(0x1df)](process[_0xd3db10(0x1d7)]);}runCLI();