@univer-cli/config-command 1.6.2 → 1.7.0-alpha.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(_0x55baf2,_0x3d2672){const _0x115b20=_0x22bc,_0x3b2b2f=_0x55baf2();while(!![]){try{const _0x319a9e=-parseInt(_0x115b20(0x1b2))/0x1*(-parseInt(_0x115b20(0x1a7))/0x2)+parseInt(_0x115b20(0x1b1))/0x3+parseInt(_0x115b20(0x1c9))/0x4+parseInt(_0x115b20(0x1c3))/0x5+parseInt(_0x115b20(0x1c0))/0x6+-parseInt(_0x115b20(0x1d1))/0x7+-parseInt(_0x115b20(0x1bb))/0x8*(parseInt(_0x115b20(0x1cd))/0x9);if(_0x319a9e===_0x3d2672)break;else _0x3b2b2f['push'](_0x3b2b2f['shift']());}catch(_0x73e228){_0x3b2b2f['push'](_0x3b2b2f['shift']());}}}(_0x324b,0x19782));import{ConfigError as _0x3ccaa8}from'@univer-cli/config';import{Command as _0x1e991b}from'commander';function n(_0x4a630b){const _0x5d8827=_0x22bc;let _0x5f5365=new _0x1e991b(_0x5d8827(0x1b3))[_0x5d8827(0x1ab)](_0x5d8827(0x1bc))[_0x5d8827(0x1ae)](()=>_0x5f5365[_0x5d8827(0x1c6)]());return _0x5f5365[_0x5d8827(0x1b6)](_0x5d8827(0x1ca))[_0x5d8827(0x1ab)](_0x5d8827(0x1c8))[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](_0x4725c0=>{const _0x2319da=_0x5d8827;a(_0x5f5365,_0x4725c0,{'path':_0x4a630b['config']['path']},_0x4a630b[_0x2319da(0x1b3)][_0x2319da(0x1ca)]);}),_0x5f5365[_0x5d8827(0x1b6)]('list')[_0x5d8827(0x1ab)]('List\x20registered\x20config\x20entries')[_0x5d8827(0x1bd)]('--json',_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](async _0x386bd9=>{const _0xb13e72=_0x5d8827;let _0x3ac4ca=await r(_0x5f5365,async()=>await _0x4a630b[_0xb13e72(0x1b3)][_0xb13e72(0x1c7)]());a(_0x5f5365,_0x386bd9,{'entries':_0x3ac4ca},o(_0x3ac4ca));}),_0x5f5365['command'](_0x5d8827(0x1b0))[_0x5d8827(0x1ab)](_0x5d8827(0x1bf))[_0x5d8827(0x1d2)](_0x5d8827(0x1d3),_0x5d8827(0x1c4))['option'](_0x5d8827(0x1ce),_0x5d8827(0x1b7))['action'](async(_0x2dfdbe,_0x357c49)=>{const _0x1bd1b7=_0x5d8827;let _0x204746=await r(_0x5f5365,async()=>await _0x4a630b[_0x1bd1b7(0x1b3)][_0x1bd1b7(0x1b0)]({'key':_0x2dfdbe}));i(_0x5f5365,_0x357c49,_0x204746);}),_0x5f5365[_0x5d8827(0x1b6)](_0x5d8827(0x1b9))[_0x5d8827(0x1ab)](_0x5d8827(0x1aa))[_0x5d8827(0x1d2)]('<key>',_0x5d8827(0x1c4))[_0x5d8827(0x1d2)](_0x5d8827(0x1cf),_0x5d8827(0x1cc))[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),'write\x20structured\x20JSON')[_0x5d8827(0x1ae)](async(_0x2e7181,_0x21b888,_0x512ef3)=>{const _0x21fcd=_0x5d8827;let _0x14c3e7=await r(_0x5f5365,async()=>await _0x4a630b[_0x21fcd(0x1b3)][_0x21fcd(0x1a8)]({'key':_0x2e7181,'text':_0x21b888}));i(_0x5f5365,_0x512ef3,_0x14c3e7);}),_0x5f5365[_0x5d8827(0x1b6)]('unset')[_0x5d8827(0x1ab)](_0x5d8827(0x1af))[_0x5d8827(0x1d2)](_0x5d8827(0x1d3),'registered\x20config\x20key')[_0x5d8827(0x1bd)](_0x5d8827(0x1ce),_0x5d8827(0x1b7))[_0x5d8827(0x1ae)](async(_0x37253f,_0x4857db)=>{const _0x3af8dc=_0x5d8827;let _0x40559c=await r(_0x5f5365,async()=>await _0x4a630b[_0x3af8dc(0x1b3)][_0x3af8dc(0x1d0)]({'key':_0x37253f}));i(_0x5f5365,_0x4857db,_0x40559c);}),_0x5f5365;}function _0x22bc(_0x5d989e,_0x5a60c4){_0x5d989e=_0x5d989e-0x1a7;const _0x324b0b=_0x324b();let _0x22bc47=_0x324b0b[_0x5d989e];return _0x22bc47;}async function r(_0x101ec7,_0x232898){const _0x214cc9=_0x22bc;try{return await _0x232898();}catch(_0x2d16ea){throw _0x2d16ea instanceof _0x3ccaa8&&_0x101ec7[_0x214cc9(0x1b5)](_0x2d16ea['code']+':\x20'+_0x2d16ea[_0x214cc9(0x1c5)],{'code':'config.failed','exitCode':0x1}),_0x2d16ea;}}function i(_0x4acf8c,_0x16ee72,_0x2a2927){a(_0x4acf8c,_0x16ee72,{'entry':_0x2a2927},s(_0x2a2927));}function a(_0x32d54f,_0x474a1e,_0x452418,_0x17b2c2){const _0xe7cd82=_0x22bc;let _0x4ebe24=_0x474a1e[_0xe7cd82(0x1ad)]===!0x0?JSON[_0xe7cd82(0x1ba)](_0x452418,null,0x2):_0x17b2c2;_0x32d54f[_0xe7cd82(0x1cb)]()[_0xe7cd82(0x1a9)]?.(_0x4ebe24+'\x0a');}function o(_0x2397cc){const _0x5678b7=_0x22bc;return _0x2397cc['map'](s)[_0x5678b7(0x1b8)]('\x0a');}function _0x324b(){const _0x40c169=['611064ktrUVL','1262DFhfOg','config','source','error','command','write\x20structured\x20JSON','join','set','stringify','4968hBtKQP','Inspect\x20and\x20update\x20application\x20config','option','string','Get\x20a\x20registered\x20config\x20entry','733836jARfwT','value','<unset>','242800ZIJyPU','registered\x20config\x20key','message','outputHelp','list','Show\x20the\x20config\x20file\x20path','582424nXTeuk','path','configureOutput','config\x20value\x20as\x20text','5157XNtwqf','--json','<value>','unset','464205MxjyQZ','argument','<key>','10dZtevZ','setFromText','writeOut','Set\x20a\x20registered\x20config\x20entry','description',')\x0a\x20\x20','json','action','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','get'];_0x324b=function(){return _0x40c169;};return _0x324b();}function s(_0x3f7835){const _0x3555ec=_0x22bc;let _0x5572c4=_0x3f7835[_0x3555ec(0x1b4)]===_0x3555ec(0x1d0)?_0x3555ec(0x1c2):c(_0x3f7835[_0x3555ec(0x1c1)]);return _0x3f7835['key']+'\x20=\x20'+_0x5572c4+'\x20('+_0x3f7835[_0x3555ec(0x1b4)]+_0x3555ec(0x1ac)+_0x3f7835['description'];}function c(_0x20740c){const _0x25e9bd=_0x22bc;return typeof _0x20740c==_0x25e9bd(0x1be)?_0x20740c:JSON[_0x25e9bd(0x1ba)](_0x20740c);}export{n as createConfigCommand};
1
+ (function(_0x1d0ae8,_0x12265a){const _0x468711=_0x18ec,_0x4de60c=_0x1d0ae8();while(!![]){try{const _0x3b1a36=-parseInt(_0x468711(0x13c))/0x1+-parseInt(_0x468711(0x150))/0x2+parseInt(_0x468711(0x141))/0x3+-parseInt(_0x468711(0x13d))/0x4+parseInt(_0x468711(0x139))/0x5*(parseInt(_0x468711(0x128))/0x6)+parseInt(_0x468711(0x12c))/0x7*(parseInt(_0x468711(0x14a))/0x8)+parseInt(_0x468711(0x12e))/0x9;if(_0x3b1a36===_0x12265a)break;else _0x4de60c['push'](_0x4de60c['shift']());}catch(_0x230ffc){_0x4de60c['push'](_0x4de60c['shift']());}}}(_0x3882,0xc4940));import{ConfigError as _0x4cba27}from'@univer-cli/config';import{Command as _0x77b5cd}from'commander';function _0x18ec(_0x466020,_0x4d494a){_0x466020=_0x466020-0x127;const _0x38825a=_0x3882();let _0x18ec16=_0x38825a[_0x466020];return _0x18ec16;}function n(_0x3ba763){const _0x6ecb97=_0x18ec;let _0x3ad410=new _0x77b5cd(_0x6ecb97(0x136))[_0x6ecb97(0x12b)](_0x6ecb97(0x14d))['action'](()=>_0x3ad410[_0x6ecb97(0x137)]());return _0x3ad410[_0x6ecb97(0x13a)](_0x6ecb97(0x13f))[_0x6ecb97(0x12b)](_0x6ecb97(0x133))['option'](_0x6ecb97(0x127),_0x6ecb97(0x148))[_0x6ecb97(0x142)](_0x356b2b=>{const _0x36139d=_0x6ecb97;a(_0x3ad410,_0x356b2b,{'path':_0x3ba763['config'][_0x36139d(0x13f)]},_0x3ba763['config']['path']);}),_0x3ad410[_0x6ecb97(0x13a)]('list')[_0x6ecb97(0x12b)](_0x6ecb97(0x134))[_0x6ecb97(0x14b)]('--json',_0x6ecb97(0x148))['action'](async _0x1e0dab=>{let _0x223e41=await r(_0x3ad410,async()=>await _0x3ba763['config']['list']());a(_0x3ad410,_0x1e0dab,{'entries':_0x223e41},o(_0x223e41));}),_0x3ad410[_0x6ecb97(0x13a)](_0x6ecb97(0x149))[_0x6ecb97(0x12b)](_0x6ecb97(0x12d))[_0x6ecb97(0x143)](_0x6ecb97(0x145),'registered\x20config\x20key')[_0x6ecb97(0x14b)](_0x6ecb97(0x127),_0x6ecb97(0x148))['action'](async(_0x3298df,_0x435d48)=>{const _0x3ca6b7=_0x6ecb97;let _0x172b9b=await r(_0x3ad410,async()=>await _0x3ba763[_0x3ca6b7(0x136)]['get']({'key':_0x3298df}));i(_0x3ad410,_0x435d48,_0x172b9b);}),_0x3ad410['command'](_0x6ecb97(0x12a))[_0x6ecb97(0x12b)](_0x6ecb97(0x147))[_0x6ecb97(0x143)]('<key>',_0x6ecb97(0x138))['argument']('<value>',_0x6ecb97(0x14f))[_0x6ecb97(0x14b)](_0x6ecb97(0x127),'write\x20structured\x20JSON')[_0x6ecb97(0x142)](async(_0x5e1112,_0x4e9d27,_0x4d28f8)=>{let _0x16b9d2=await r(_0x3ad410,async()=>await _0x3ba763['config']['setFromText']({'key':_0x5e1112,'text':_0x4e9d27}));i(_0x3ad410,_0x4d28f8,_0x16b9d2);}),_0x3ad410[_0x6ecb97(0x13a)](_0x6ecb97(0x13b))[_0x6ecb97(0x12b)](_0x6ecb97(0x14c))['argument'](_0x6ecb97(0x145),_0x6ecb97(0x138))[_0x6ecb97(0x14b)](_0x6ecb97(0x127),_0x6ecb97(0x148))[_0x6ecb97(0x142)](async(_0xbb27f5,_0x5a55d8)=>{const _0x42ba2f=_0x6ecb97;let _0x368ffc=await r(_0x3ad410,async()=>await _0x3ba763[_0x42ba2f(0x136)][_0x42ba2f(0x13b)]({'key':_0xbb27f5}));i(_0x3ad410,_0x5a55d8,_0x368ffc);}),_0x3ad410;}async function r(_0x44d6ef,_0x35daa9){const _0x232250=_0x18ec;try{return await _0x35daa9();}catch(_0xae0897){throw _0xae0897 instanceof _0x4cba27&&_0x44d6ef[_0x232250(0x13e)](_0xae0897[_0x232250(0x129)]+':\x20'+_0xae0897[_0x232250(0x131)],{'code':_0x232250(0x14e),'exitCode':0x1}),_0xae0897;}}function i(_0x3b2a61,_0x4dd462,_0xaf56b6){a(_0x3b2a61,_0x4dd462,{'entry':_0xaf56b6},s(_0xaf56b6));}function a(_0x404258,_0x39e072,_0x3e12e6,_0x25c9a6){const _0x427098=_0x18ec;let _0x34f76f=_0x39e072[_0x427098(0x130)]===!0x0?JSON['stringify'](_0x3e12e6,null,0x2):_0x25c9a6;_0x404258[_0x427098(0x132)]()[_0x427098(0x144)]?.(_0x34f76f+'\x0a');}function o(_0x52534a){return _0x52534a['map'](s)['join']('\x0a');}function s(_0x3db44d){const _0x53ce01=_0x18ec;let _0x6f55de=_0x3db44d[_0x53ce01(0x140)]===_0x53ce01(0x13b)?'<unset>':c(_0x3db44d[_0x53ce01(0x146)]);return _0x3db44d['key']+'\x20=\x20'+_0x6f55de+'\x20('+_0x3db44d[_0x53ce01(0x140)]+')\x0a\x20\x20'+_0x3db44d[_0x53ce01(0x12b)];}function _0x3882(){const _0x5b89fc=['set','description','7mMKRST','Get\x20a\x20registered\x20config\x20entry','23445945xrTawi','stringify','json','message','configureOutput','Show\x20the\x20config\x20file\x20path','List\x20registered\x20config\x20entries','string','config','outputHelp','registered\x20config\x20key','25AwGfzM','command','unset','1155711byoiga','6420428DCfpDT','error','path','source','316017NlADKr','action','argument','writeOut','<key>','value','Set\x20a\x20registered\x20config\x20entry','write\x20structured\x20JSON','get','8594984bzvcAM','option','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','Inspect\x20and\x20update\x20application\x20config','config.failed','config\x20value\x20as\x20text','1755800oKETKx','--json','790902gXoqyZ','code'];_0x3882=function(){return _0x5b89fc;};return _0x3882();}function c(_0x2e9b7b){const _0x2f1594=_0x18ec;return typeof _0x2e9b7b==_0x2f1594(0x135)?_0x2e9b7b:JSON[_0x2f1594(0x12f)](_0x2e9b7b);}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.6.2",
4
+ "version": "1.7.0-alpha.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.6.2"
21
+ "@univer-cli/config": "1.7.0-alpha.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"