@univer-cli/config-command 1.0.0-beta.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x412f2a,_0x4e2b67){const _0xd17f43=_0x331e,_0x146090=_0x412f2a();while(!![]){try{const _0x44a01=parseInt(_0xd17f43(0x20f))/0x1+parseInt(_0xd17f43(0x1fd))/0x2+parseInt(_0xd17f43(0x20b))/0x3*(-parseInt(_0xd17f43(0x200))/0x4)+-parseInt(_0xd17f43(0x206))/0x5+parseInt(_0xd17f43(0x1ff))/0x6*(parseInt(_0xd17f43(0x205))/0x7)+parseInt(_0xd17f43(0x1fc))/0x8+-parseInt(_0xd17f43(0x21c))/0x9*(parseInt(_0xd17f43(0x216))/0xa);if(_0x44a01===_0x4e2b67)break;else _0x146090['push'](_0x146090['shift']());}catch(_0x46c713){_0x146090['push'](_0x146090['shift']());}}}(_0x12a8,0x7b536));import{ConfigError as _0xb974c2}from'@univer-cli/config';import{Command as _0x28bf41}from'commander';function n(_0x4d5565){const _0x1743ba=_0x331e;let _0x94c1dc=new _0x28bf41(_0x1743ba(0x21b))['description'](_0x1743ba(0x1f2))[_0x1743ba(0x218)](()=>_0x94c1dc['outputHelp']());return _0x94c1dc[_0x1743ba(0x21a)](_0x1743ba(0x209))[_0x1743ba(0x1fe)]('Show\x20the\x20config\x20file\x20path')[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))['action'](_0x5f4181=>{const _0x228f3c=_0x1743ba;a(_0x94c1dc,_0x5f4181,{'path':_0x4d5565[_0x228f3c(0x21b)][_0x228f3c(0x209)]},_0x4d5565[_0x228f3c(0x21b)][_0x228f3c(0x209)]);}),_0x94c1dc[_0x1743ba(0x21a)]('list')[_0x1743ba(0x1fe)](_0x1743ba(0x20e))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async _0x30d105=>{const _0x201a24=_0x1743ba;let _0xd5a08e=await r(_0x94c1dc,async()=>await _0x4d5565[_0x201a24(0x21b)][_0x201a24(0x210)]());a(_0x94c1dc,_0x30d105,{'entries':_0xd5a08e},o(_0xd5a08e));}),_0x94c1dc['command'](_0x1743ba(0x215))[_0x1743ba(0x1fe)](_0x1743ba(0x1f1))[_0x1743ba(0x20d)]('<key>',_0x1743ba(0x1f8))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0xde8e0e,_0x236bdf)=>{const _0x506901=_0x1743ba;let _0x47f22f=await r(_0x94c1dc,async()=>await _0x4d5565['config'][_0x506901(0x215)]({'key':_0xde8e0e}));i(_0x94c1dc,_0x236bdf,_0x47f22f);}),_0x94c1dc[_0x1743ba(0x21a)](_0x1743ba(0x1f3))['description'](_0x1743ba(0x1fa))[_0x1743ba(0x20d)](_0x1743ba(0x1fb),'registered\x20config\x20key')['argument'](_0x1743ba(0x211),'config\x20value\x20as\x20text')['option'](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0x4ebb91,_0x4fc190,_0x4cd6cd)=>{const _0x163716=_0x1743ba;let _0x2122bb=await r(_0x94c1dc,async()=>await _0x4d5565[_0x163716(0x21b)][_0x163716(0x1f7)]({'key':_0x4ebb91,'text':_0x4fc190}));i(_0x94c1dc,_0x4cd6cd,_0x2122bb);}),_0x94c1dc['command'](_0x1743ba(0x212))[_0x1743ba(0x1fe)](_0x1743ba(0x1f4))[_0x1743ba(0x20d)](_0x1743ba(0x1fb),_0x1743ba(0x1f8))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0x14f92d,_0x31dc20)=>{const _0x30cc86=_0x1743ba;let _0x5a9bee=await r(_0x94c1dc,async()=>await _0x4d5565['config'][_0x30cc86(0x212)]({'key':_0x14f92d}));i(_0x94c1dc,_0x31dc20,_0x5a9bee);}),_0x94c1dc;}async function r(_0x210870,_0x5276a5){const _0x1bb2ef=_0x331e;try{return await _0x5276a5();}catch(_0xc7155d){throw _0xc7155d instanceof _0xb974c2&&_0x210870[_0x1bb2ef(0x213)](_0xc7155d[_0x1bb2ef(0x201)]+':\x20'+_0xc7155d[_0x1bb2ef(0x1f5)],{'code':_0x1bb2ef(0x217),'exitCode':0x1}),_0xc7155d;}}function i(_0x44f0d8,_0x564a9e,_0x583833){a(_0x44f0d8,_0x564a9e,{'entry':_0x583833},s(_0x583833));}function a(_0x86277,_0x4f1871,_0x513c70,_0x3806e0){const _0x3aaa44=_0x331e;let _0x44be55=_0x4f1871[_0x3aaa44(0x214)]===!0x0?JSON[_0x3aaa44(0x207)](_0x513c70,null,0x2):_0x3806e0;_0x86277['configureOutput']()[_0x3aaa44(0x202)]?.(_0x44be55+'\x0a');}function o(_0xc7a2f){const _0xb61f35=_0x331e;return _0xc7a2f['map'](s)[_0xb61f35(0x20a)]('\x0a');}function _0x12a8(){const _0x3054c1=['Set\x20a\x20registered\x20config\x20entry','<key>','3989560UiktnZ','989890uYqdbk','description','54nCqpOr','15536iBdmLO','code','writeOut','--json','option','281939pXEjvP','1943920uehpgg','stringify','write\x20structured\x20JSON','path','join','366EQODdw','value','argument','List\x20registered\x20config\x20entries','465169qbFqoJ','list','<value>','unset','error','json','get','360frVczD','config.failed','action','\x20=\x20','command','config','113382bqNQLm','Get\x20a\x20registered\x20config\x20entry','Inspect\x20and\x20update\x20application\x20config','set','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','message',')\x0a\x20\x20','setFromText','registered\x20config\x20key','source'];_0x12a8=function(){return _0x3054c1;};return _0x12a8();}function s(_0x5aab11){const _0x2b2e12=_0x331e;let _0x5564d5=_0x5aab11[_0x2b2e12(0x1f9)]===_0x2b2e12(0x212)?'<unset>':c(_0x5aab11[_0x2b2e12(0x20c)]);return _0x5aab11['key']+_0x2b2e12(0x219)+_0x5564d5+'\x20('+_0x5aab11[_0x2b2e12(0x1f9)]+_0x2b2e12(0x1f6)+_0x5aab11['description'];}function _0x331e(_0x42bf84,_0xbad0f2){_0x42bf84=_0x42bf84-0x1f1;const _0x12a8c4=_0x12a8();let _0x331eca=_0x12a8c4[_0x42bf84];return _0x331eca;}function c(_0x2d819b){return typeof _0x2d819b=='string'?_0x2d819b:JSON['stringify'](_0x2d819b);}export{n as createConfigCommand};
1
+ (function(_0x133aa8,_0x11ce22){const _0x370a51=_0x2cbe,_0x55789d=_0x133aa8();while(!![]){try{const _0x410ea0=-parseInt(_0x370a51(0x127))/0x1+-parseInt(_0x370a51(0x12c))/0x2+parseInt(_0x370a51(0x132))/0x3*(-parseInt(_0x370a51(0x13f))/0x4)+-parseInt(_0x370a51(0x13d))/0x5+-parseInt(_0x370a51(0x11d))/0x6+parseInt(_0x370a51(0x119))/0x7+parseInt(_0x370a51(0x131))/0x8;if(_0x410ea0===_0x11ce22)break;else _0x55789d['push'](_0x55789d['shift']());}catch(_0x25c763){_0x55789d['push'](_0x55789d['shift']());}}}(_0x2884,0x4bdaf));import{ConfigError as _0x3e7aa1}from'@univer-cli/config';import{Command as _0x44a914}from'commander';function n(_0x4f9908){const _0x1634bf=_0x2cbe;let _0x126bd9=new _0x44a914('config')[_0x1634bf(0x141)](_0x1634bf(0x11c))[_0x1634bf(0x129)](()=>_0x126bd9['outputHelp']());return _0x126bd9[_0x1634bf(0x122)](_0x1634bf(0x118))[_0x1634bf(0x141)](_0x1634bf(0x12f))[_0x1634bf(0x11a)](_0x1634bf(0x137),_0x1634bf(0x140))[_0x1634bf(0x129)](_0x3f9c08=>{const _0x45e967=_0x1634bf;a(_0x126bd9,_0x3f9c08,{'path':_0x4f9908[_0x45e967(0x123)][_0x45e967(0x118)]},_0x4f9908['config'][_0x45e967(0x118)]);}),_0x126bd9[_0x1634bf(0x122)](_0x1634bf(0x13e))[_0x1634bf(0x141)](_0x1634bf(0x142))[_0x1634bf(0x11a)]('--json',_0x1634bf(0x140))[_0x1634bf(0x129)](async _0x556e9d=>{const _0xb052e5=_0x1634bf;let _0x2fcbf0=await r(_0x126bd9,async()=>await _0x4f9908[_0xb052e5(0x123)][_0xb052e5(0x13e)]());a(_0x126bd9,_0x556e9d,{'entries':_0x2fcbf0},o(_0x2fcbf0));}),_0x126bd9[_0x1634bf(0x122)](_0x1634bf(0x138))[_0x1634bf(0x141)](_0x1634bf(0x135))[_0x1634bf(0x134)](_0x1634bf(0x126),_0x1634bf(0x12e))[_0x1634bf(0x11a)](_0x1634bf(0x137),'write\x20structured\x20JSON')[_0x1634bf(0x129)](async(_0x2a4307,_0x30c5ef)=>{const _0x440449=_0x1634bf;let _0x122249=await r(_0x126bd9,async()=>await _0x4f9908['config'][_0x440449(0x138)]({'key':_0x2a4307}));i(_0x126bd9,_0x30c5ef,_0x122249);}),_0x126bd9['command'](_0x1634bf(0x12b))[_0x1634bf(0x141)](_0x1634bf(0x13b))[_0x1634bf(0x134)]('<key>',_0x1634bf(0x12e))[_0x1634bf(0x134)]('<value>',_0x1634bf(0x12a))['option'](_0x1634bf(0x137),'write\x20structured\x20JSON')[_0x1634bf(0x129)](async(_0x3f48d6,_0x4e623c,_0x520c23)=>{const _0x14249e=_0x1634bf;let _0x1c603d=await r(_0x126bd9,async()=>await _0x4f9908[_0x14249e(0x123)][_0x14249e(0x121)]({'key':_0x3f48d6,'text':_0x4e623c}));i(_0x126bd9,_0x520c23,_0x1c603d);}),_0x126bd9['command']('unset')[_0x1634bf(0x141)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x1634bf(0x134)](_0x1634bf(0x126),'registered\x20config\x20key')[_0x1634bf(0x11a)](_0x1634bf(0x137),_0x1634bf(0x140))[_0x1634bf(0x129)](async(_0x4962be,_0x15cc37)=>{const _0x14fb22=_0x1634bf;let _0x47cef1=await r(_0x126bd9,async()=>await _0x4f9908[_0x14fb22(0x123)][_0x14fb22(0x124)]({'key':_0x4962be}));i(_0x126bd9,_0x15cc37,_0x47cef1);}),_0x126bd9;}async function r(_0x4fc61d,_0x3eca32){const _0x41dfb6=_0x2cbe;try{return await _0x3eca32();}catch(_0x19eb27){throw _0x19eb27 instanceof _0x3e7aa1&&_0x4fc61d[_0x41dfb6(0x139)](_0x19eb27[_0x41dfb6(0x12d)]+':\x20'+_0x19eb27[_0x41dfb6(0x136)],{'code':'config.failed','exitCode':0x1}),_0x19eb27;}}function i(_0x9bced5,_0x137618,_0x355487){a(_0x9bced5,_0x137618,{'entry':_0x355487},s(_0x355487));}function a(_0x33ee58,_0x48401c,_0x3e8a4b,_0x2842dc){const _0x2eb27d=_0x2cbe;let _0xb5bb23=_0x48401c[_0x2eb27d(0x11b)]===!0x0?JSON[_0x2eb27d(0x133)](_0x3e8a4b,null,0x2):_0x2842dc;_0x33ee58[_0x2eb27d(0x120)]()['writeOut']?.(_0xb5bb23+'\x0a');}function o(_0x4aca37){const _0x3b4dc6=_0x2cbe;return _0x4aca37[_0x3b4dc6(0x130)](s)[_0x3b4dc6(0x128)]('\x0a');}function _0x2884(){const _0x580aa9=['Show\x20the\x20config\x20file\x20path','map','18532728tKSgeL','1461BQPYkI','stringify','argument','Get\x20a\x20registered\x20config\x20entry','message','--json','get','error','value','Set\x20a\x20registered\x20config\x20entry','string','2904620hewYZQ','list','2932uJSlxY','write\x20structured\x20JSON','description','List\x20registered\x20config\x20entries','path','966028zcYnTY','option','json','Inspect\x20and\x20update\x20application\x20config','2963202iqHmUb','source','key','configureOutput','setFromText','command','config','unset','\x20=\x20','<key>','151698jkDxVi','join','action','config\x20value\x20as\x20text','set','1120864jIZryj','code','registered\x20config\x20key'];_0x2884=function(){return _0x580aa9;};return _0x2884();}function _0x2cbe(_0x6a31fb,_0xfc4f95){_0x6a31fb=_0x6a31fb-0x118;const _0x288403=_0x2884();let _0x2cbeff=_0x288403[_0x6a31fb];return _0x2cbeff;}function s(_0x3d453d){const _0xb12272=_0x2cbe;let _0x373e83=_0x3d453d[_0xb12272(0x11e)]==='unset'?'<unset>':c(_0x3d453d[_0xb12272(0x13a)]);return _0x3d453d[_0xb12272(0x11f)]+_0xb12272(0x125)+_0x373e83+'\x20('+_0x3d453d['source']+')\x0a\x20\x20'+_0x3d453d['description'];}function c(_0x21f102){const _0x13af2b=_0x2cbe;return typeof _0x21f102==_0x13af2b(0x13c)?_0x21f102:JSON['stringify'](_0x21f102);}export{n as createConfigCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/config-command",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.2",
4
+ "version": "1.0.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/config": "1.0.0-beta.2"
21
+ "@univer-cli/config": "1.0.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"