@ks-opdev/cli
Version:
ksodev: A CLI based on the WPS Open Platform
1 lines • 3.4 kB
JavaScript
const a12_0x181651=a12_0x4005;(function(_0x2add89,_0x50acf3){const _0x5a49fe=a12_0x4005,_0x38a958=_0x2add89();while(!![]){try{const _0x30d213=parseInt(_0x5a49fe(0x15e))/0x1*(-parseInt(_0x5a49fe(0x145))/0x2)+parseInt(_0x5a49fe(0x14d))/0x3*(-parseInt(_0x5a49fe(0x14b))/0x4)+parseInt(_0x5a49fe(0x15c))/0x5+-parseInt(_0x5a49fe(0x147))/0x6*(parseInt(_0x5a49fe(0x141))/0x7)+-parseInt(_0x5a49fe(0x152))/0x8+parseInt(_0x5a49fe(0x148))/0x9*(parseInt(_0x5a49fe(0x15d))/0xa)+-parseInt(_0x5a49fe(0x156))/0xb*(-parseInt(_0x5a49fe(0x160))/0xc);if(_0x30d213===_0x50acf3)break;else _0x38a958['push'](_0x38a958['shift']());}catch(_0x5c2518){_0x38a958['push'](_0x38a958['shift']());}}}(a12_0x3262,0x7c9d9));import{Command}from'@oclif/core';import a12_0x123ac6 from'chalk';function a12_0x4005(_0x23d716,_0x1eedba){const _0x326290=a12_0x3262();return a12_0x4005=function(_0x4005b0,_0x2e3617){_0x4005b0=_0x4005b0-0x141;let _0x19daf8=_0x326290[_0x4005b0];return _0x19daf8;},a12_0x4005(_0x23d716,_0x1eedba);}import a12_0x31d90e from'ora';function a12_0x3262(){const _0x3804dd=['2606755HwAvnZ','10RuCdzo','178CPALRS','finally','18529692mXYPan','Info','144256RzdtIm','join','logColorized','spinner','4612xPHkPj','createLoading','264GeANze','5843547lEhTJR','_actionActive','string','7764BUvoho','stop','33WdZXAp','logAt','createSeparator','map','white','6926232VHgfFQ','log','colorize','start','11kcYNml','repeat','stopAction','stopLoading','Loading...','startAction'];a12_0x3262=function(){return _0x3804dd;};return a12_0x3262();}import{V,FileOnly}from'../log/logger.js';export default class ExtendedCommand extends Command{[a12_0x181651(0x144)];[a12_0x181651(0x149)]=![];[a12_0x181651(0x154)](_0x14e8be,_0x52c1dc){return a12_0x123ac6[_0x52c1dc](_0x14e8be);}[a12_0x181651(0x146)](_0x3556dc={}){const _0x1b50bd=a12_0x181651,_0x456fe7=_0x3556dc['text']||_0x1b50bd(0x15a);return this[_0x1b50bd(0x159)](),this['spinner']=a12_0x31d90e(_0x456fe7),this[_0x1b50bd(0x144)];}[a12_0x181651(0x159)](){const _0xf16224=a12_0x181651;if(this[_0xf16224(0x144)]){try{this[_0xf16224(0x144)][_0xf16224(0x14c)]();}catch{}this['spinner']=undefined;}}[a12_0x181651(0x14f)](_0x3f6431=0x32,_0x2a64be='─'){const _0x313142=a12_0x181651;return _0x2a64be[_0x313142(0x157)](_0x3f6431);}[a12_0x181651(0x15f)](_0x1200c3){const _0x5a459d=a12_0x181651;return this[_0x5a459d(0x159)](),super[_0x5a459d(0x15f)](_0x1200c3);}[a12_0x181651(0x143)](_0x1785ce,_0x109c04,_0x4f1fa0,_0x453633=a12_0x181651(0x151)){const _0x55f284=a12_0x181651;this['log'](this[_0x55f284(0x154)](_0x1785ce,_0x109c04)+'\x20'+this[_0x55f284(0x154)](_0x4f1fa0,_0x453633));}[a12_0x181651(0x15b)](_0x27042c){const _0x1b90b6=a12_0x181651;this['stopLoading'](),this['spinner']=a12_0x31d90e(_0x27042c)[_0x1b90b6(0x155)](),this[_0x1b90b6(0x149)]=!![];}['stopAction'](){const _0x56cbe6=a12_0x181651;this[_0x56cbe6(0x159)](),this[_0x56cbe6(0x149)]=![];}[a12_0x181651(0x153)](_0x3c7be3,..._0x495fdc){const _0x167a23=a12_0x181651;try{const _0x279a6d=[_0x3c7be3,..._0x495fdc][_0x167a23(0x150)](_0x154171=>typeof _0x154171===_0x167a23(0x14a)?_0x154171:JSON['stringify'](_0x154171))[_0x167a23(0x142)]('\x20');FileOnly(_0x279a6d);}catch{}if(this[_0x167a23(0x149)])this['stopAction']();super[_0x167a23(0x153)](_0x3c7be3,..._0x495fdc);}[a12_0x181651(0x14e)](_0x102fc0,_0x101493){const _0x2ca0cd=a12_0x181651;if(this['_actionActive'])this[_0x2ca0cd(0x158)]();V(_0x102fc0)[_0x2ca0cd(0x161)](_0x101493);}}