UNPKG

@ks-opdev/cli

Version:

ksodev: A CLI based on the WPS Open Platform

1 lines 2.51 kB
const a1_0x1b0dcc=a1_0x52aa;(function(_0x5c973c,_0x42a93f){const _0x3a9050=a1_0x52aa,_0x55482d=_0x5c973c();while(!![]){try{const _0x189035=parseInt(_0x3a9050(0x71))/0x1*(-parseInt(_0x3a9050(0x84))/0x2)+-parseInt(_0x3a9050(0x72))/0x3*(-parseInt(_0x3a9050(0x6d))/0x4)+-parseInt(_0x3a9050(0x80))/0x5+-parseInt(_0x3a9050(0x81))/0x6+-parseInt(_0x3a9050(0x74))/0x7+parseInt(_0x3a9050(0x7a))/0x8*(parseInt(_0x3a9050(0x7d))/0x9)+parseInt(_0x3a9050(0x77))/0xa*(parseInt(_0x3a9050(0x70))/0xb);if(_0x189035===_0x42a93f)break;else _0x55482d['push'](_0x55482d['shift']());}catch(_0x2d7537){_0x55482d['push'](_0x55482d['shift']());}}}(a1_0x4add,0x8a8d2));import{Args,Flags,ux}from'@oclif/core';import{ClusterUtils}from'../lib/utils/cluster.js';function a1_0x4add(){const _0x195d71=['3623120lvRqJU','4056264QORiFs','log','boolean','2sfINbx','action','logoutFromCluster','49624uccKXN','Cluster\x20URL\x20to\x20logout\x20from\x20(optional,\x20defaults\x20to\x20current\x20cluster)','bind','3864520WdUSvz','914318ktacQm','135xPQFsS','Logout\x20failed:\x20','264481TrfODS','flags','error','60XrNEle','validateAndGetTargetCluster','string','677560MVIpDO','args','clusterUrl','27iqqxqE','logoutFromAllClusters','Logout\x20from\x20all\x20clusters\x20and\x20clear\x20all\x20configuration'];a1_0x4add=function(){return _0x195d71;};return a1_0x4add();}function a1_0x52aa(_0x378fa8,_0x33262a){const _0x4addc2=a1_0x4add();return a1_0x52aa=function(_0x52aa2a,_0x59e7e1){_0x52aa2a=_0x52aa2a-0x6c;let _0x32f24d=_0x4addc2[_0x52aa2a];return _0x32f24d;},a1_0x52aa(_0x378fa8,_0x33262a);}import a1_0x1f9c25 from'../lib/extends/command.js';export default class ClusterLogout extends a1_0x1f9c25{static ['description']='Logout\x20from\x20open\x20platform';static [a1_0x1b0dcc(0x7b)]={'clusterUrl':Args[a1_0x1b0dcc(0x79)]({'name':a1_0x1b0dcc(0x7c),'description':a1_0x1b0dcc(0x6e),'required':![]})};static [a1_0x1b0dcc(0x75)]={'all':Flags[a1_0x1b0dcc(0x83)]({'char':'a','description':a1_0x1b0dcc(0x7f),'default':![]})};async['run'](){const _0x345492=a1_0x1b0dcc,{args:_0x4065f3,flags:_0xdd1c35}=await this['parse'](ClusterLogout);try{if(_0xdd1c35['all']){await ClusterUtils[_0x345492(0x7e)](this[_0x345492(0x82)][_0x345492(0x6f)](this),ux[_0x345492(0x85)]);return;}const {clusterUrl:_0x102254,clusterName:_0x176d68}=ClusterUtils[_0x345492(0x78)](_0x4065f3['clusterUrl']);await ClusterUtils[_0x345492(0x6c)](_0x102254,_0x176d68,this[_0x345492(0x82)]['bind'](this),ux['action']);}catch(_0x3c43c8){this[_0x345492(0x76)](_0x345492(0x73)+_0x3c43c8);}}}