@univer-cli/config-command 1.0.0 → 1.0.1

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(_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};
1
+ (function(_0x276e44,_0x29fe3f){const _0x35e519=_0x526c,_0x2198a1=_0x276e44();while(!![]){try{const _0x3a6b56=parseInt(_0x35e519(0xf0))/0x1*(-parseInt(_0x35e519(0xf3))/0x2)+-parseInt(_0x35e519(0xe7))/0x3+-parseInt(_0x35e519(0xef))/0x4+parseInt(_0x35e519(0xd2))/0x5*(-parseInt(_0x35e519(0xf2))/0x6)+-parseInt(_0x35e519(0xdb))/0x7+parseInt(_0x35e519(0xd1))/0x8+parseInt(_0x35e519(0xe8))/0x9;if(_0x3a6b56===_0x29fe3f)break;else _0x2198a1['push'](_0x2198a1['shift']());}catch(_0x34894b){_0x2198a1['push'](_0x2198a1['shift']());}}}(_0x5881,0x26d2c));import{ConfigError as _0x39388d}from'@univer-cli/config';import{Command as _0x31d5be}from'commander';function n(_0x31e74d){const _0x51d68e=_0x526c;let _0x3e297c=new _0x31d5be('config')[_0x51d68e(0xc9)]('Inspect\x20and\x20update\x20application\x20config')[_0x51d68e(0xd0)](()=>_0x3e297c[_0x51d68e(0xe0)]());return _0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe9))[_0x51d68e(0xc9)](_0x51d68e(0xc8))[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](_0x2a8459=>{const _0x1ffc2a=_0x51d68e;a(_0x3e297c,_0x2a8459,{'path':_0x31e74d[_0x1ffc2a(0xf1)][_0x1ffc2a(0xe9)]},_0x31e74d[_0x1ffc2a(0xf1)][_0x1ffc2a(0xe9)]);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xf5))[_0x51d68e(0xc9)](_0x51d68e(0xcd))['option'](_0x51d68e(0xcb),_0x51d68e(0xce))['action'](async _0x451c0b=>{const _0x173462=_0x51d68e;let _0x3c726b=await r(_0x3e297c,async()=>await _0x31e74d[_0x173462(0xf1)][_0x173462(0xf5)]());a(_0x3e297c,_0x451c0b,{'entries':_0x3c726b},o(_0x3c726b));}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xd3))[_0x51d68e(0xc9)](_0x51d68e(0xeb))['argument']('<key>','registered\x20config\x20key')[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))['action'](async(_0x496632,_0x4b6fe6)=>{const _0x574a26=_0x51d68e;let _0x315ded=await r(_0x3e297c,async()=>await _0x31e74d[_0x574a26(0xf1)][_0x574a26(0xd3)]({'key':_0x496632}));i(_0x3e297c,_0x4b6fe6,_0x315ded);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe1))[_0x51d68e(0xc9)](_0x51d68e(0xe2))[_0x51d68e(0xdc)]('<key>','registered\x20config\x20key')[_0x51d68e(0xdc)](_0x51d68e(0xd5),_0x51d68e(0xda))['option'](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](async(_0x35af13,_0x5a8899,_0x2609b1)=>{const _0x4dae5e=_0x51d68e;let _0x57ac7f=await r(_0x3e297c,async()=>await _0x31e74d[_0x4dae5e(0xf1)][_0x4dae5e(0xec)]({'key':_0x35af13,'text':_0x5a8899}));i(_0x3e297c,_0x2609b1,_0x57ac7f);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe6))[_0x51d68e(0xc9)](_0x51d68e(0xd4))[_0x51d68e(0xdc)]('<key>',_0x51d68e(0xe3))[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](async(_0x1ad8a3,_0x19a7a1)=>{const _0x3d0736=_0x51d68e;let _0x50433e=await r(_0x3e297c,async()=>await _0x31e74d[_0x3d0736(0xf1)][_0x3d0736(0xe6)]({'key':_0x1ad8a3}));i(_0x3e297c,_0x19a7a1,_0x50433e);}),_0x3e297c;}async function r(_0x198cf9,_0x315237){const _0x1a39cf=_0x526c;try{return await _0x315237();}catch(_0x4eef1f){throw _0x4eef1f instanceof _0x39388d&&_0x198cf9[_0x1a39cf(0xcf)](_0x4eef1f[_0x1a39cf(0xca)]+':\x20'+_0x4eef1f['message'],{'code':_0x1a39cf(0xd7),'exitCode':0x1}),_0x4eef1f;}}function i(_0x1c734b,_0x16289e,_0x3666a6){a(_0x1c734b,_0x16289e,{'entry':_0x3666a6},s(_0x3666a6));}function _0x526c(_0x188d1a,_0x5a743c){_0x188d1a=_0x188d1a-0xc8;const _0x588175=_0x5881();let _0x526ce3=_0x588175[_0x188d1a];return _0x526ce3;}function a(_0x1ce085,_0x2a5547,_0x5d288e,_0x10f4a3){const _0x2e4ffb=_0x526c;let _0x533615=_0x2a5547[_0x2e4ffb(0xd8)]===!0x0?JSON[_0x2e4ffb(0xcc)](_0x5d288e,null,0x2):_0x10f4a3;_0x1ce085['configureOutput']()[_0x2e4ffb(0xdf)]?.(_0x533615+'\x0a');}function _0x5881(){const _0x52244b=['argument','string','option','writeOut','outputHelp','set','Set\x20a\x20registered\x20config\x20entry','registered\x20config\x20key','map','key','unset','831414jpLMaU','8652564NbWlyW','path','join','Get\x20a\x20registered\x20config\x20entry','setFromText','command','<unset>','332460qlkxQb','9qXtZoW','config','286386PDKlfm','57662qBkOpC','source','list','Show\x20the\x20config\x20file\x20path','description','code','--json','stringify','List\x20registered\x20config\x20entries','write\x20structured\x20JSON','error','action','114168bypswk','20iJJTvj','get','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','<value>','value','config.failed','json','\x20=\x20','config\x20value\x20as\x20text','41937DXPvWy'];_0x5881=function(){return _0x52244b;};return _0x5881();}function o(_0x542e4f){const _0x13366e=_0x526c;return _0x542e4f[_0x13366e(0xe4)](s)[_0x13366e(0xea)]('\x0a');}function s(_0x2b4746){const _0xcb20c5=_0x526c;let _0x35dd64=_0x2b4746[_0xcb20c5(0xf4)]===_0xcb20c5(0xe6)?_0xcb20c5(0xee):c(_0x2b4746[_0xcb20c5(0xd6)]);return _0x2b4746[_0xcb20c5(0xe5)]+_0xcb20c5(0xd9)+_0x35dd64+'\x20('+_0x2b4746[_0xcb20c5(0xf4)]+')\x0a\x20\x20'+_0x2b4746[_0xcb20c5(0xc9)];}function c(_0x40c603){const _0x2b3447=_0x526c;return typeof _0x40c603==_0x2b3447(0xdd)?_0x40c603:JSON[_0x2b3447(0xcc)](_0x40c603);}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",
4
+ "version": "1.0.1",
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"
21
+ "@univer-cli/config": "1.0.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"