@univer-cli/config-command 1.3.1 → 1.5.2
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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e72db,_0x3c9c4d){const _0x2e2d47=_0x3882,_0x23d461=_0x1e72db();while(!![]){try{const _0x3481b9=-parseInt(_0x2e2d47(0x1a1))/0x1+parseInt(_0x2e2d47(0x1b1))/0x2+-parseInt(_0x2e2d47(0x191))/0x3*(-parseInt(_0x2e2d47(0x197))/0x4)+-parseInt(_0x2e2d47(0x193))/0x5*(parseInt(_0x2e2d47(0x1b7))/0x6)+parseInt(_0x2e2d47(0x194))/0x7+-parseInt(_0x2e2d47(0x196))/0x8*(-parseInt(_0x2e2d47(0x1b5))/0x9)+-parseInt(_0x2e2d47(0x1b4))/0xa;if(_0x3481b9===_0x3c9c4d)break;else _0x23d461['push'](_0x23d461['shift']());}catch(_0x106ae4){_0x23d461['push'](_0x23d461['shift']());}}}(_0x5183,0xd0fa2));function _0x5183(){const _0x3b69ef=['config','key','set','config\x20value\x20as\x20text','value','command','string','registered\x20config\x20key','writeOut','<value>','message','1856720AGpJcC','option','setFromText','2142870tMryZN','727794qKIagz','source','252baghLb','action','--json','description','outputHelp','422727LGHOyQ','error','141735akzVVA','7492394rIhiYE','code','32iWQmkC','44xVFnjM','write\x20structured\x20JSON','argument','<key>','configureOutput',')\x0a\x20\x20','list','unset','get','path','1611334YyfUeR','Inspect\x20and\x20update\x20application\x20config','Show\x20the\x20config\x20file\x20path','stringify','List\x20registered\x20config\x20entries'];_0x5183=function(){return _0x3b69ef;};return _0x5183();}import{ConfigError as _0x4d41bf}from'@univer-cli/config';import{Command as _0x434541}from'commander';function n(_0x264208){const _0x136276=_0x3882;let _0x2cfa13=new _0x434541(_0x136276(0x1a6))[_0x136276(0x18f)](_0x136276(0x1a2))[_0x136276(0x1b8)](()=>_0x2cfa13[_0x136276(0x190)]());return _0x2cfa13[_0x136276(0x1ab)](_0x136276(0x1a0))[_0x136276(0x18f)](_0x136276(0x1a3))[_0x136276(0x1b2)](_0x136276(0x1b9),_0x136276(0x198))[_0x136276(0x1b8)](_0x44c26b=>{const _0x49f05d=_0x136276;a(_0x2cfa13,_0x44c26b,{'path':_0x264208[_0x49f05d(0x1a6)][_0x49f05d(0x1a0)]},_0x264208[_0x49f05d(0x1a6)][_0x49f05d(0x1a0)]);}),_0x2cfa13[_0x136276(0x1ab)](_0x136276(0x19d))[_0x136276(0x18f)](_0x136276(0x1a5))[_0x136276(0x1b2)](_0x136276(0x1b9),_0x136276(0x198))[_0x136276(0x1b8)](async _0x5aabcd=>{const _0x1bd357=_0x136276;let _0x16c968=await r(_0x2cfa13,async()=>await _0x264208['config'][_0x1bd357(0x19d)]());a(_0x2cfa13,_0x5aabcd,{'entries':_0x16c968},o(_0x16c968));}),_0x2cfa13[_0x136276(0x1ab)]('get')[_0x136276(0x18f)]('Get\x20a\x20registered\x20config\x20entry')[_0x136276(0x199)](_0x136276(0x19a),_0x136276(0x1ad))[_0x136276(0x1b2)](_0x136276(0x1b9),_0x136276(0x198))[_0x136276(0x1b8)](async(_0x24a1b4,_0x1088d2)=>{const _0x5bb04d=_0x136276;let _0x37e325=await r(_0x2cfa13,async()=>await _0x264208['config'][_0x5bb04d(0x19f)]({'key':_0x24a1b4}));i(_0x2cfa13,_0x1088d2,_0x37e325);}),_0x2cfa13[_0x136276(0x1ab)](_0x136276(0x1a8))['description']('Set\x20a\x20registered\x20config\x20entry')[_0x136276(0x199)](_0x136276(0x19a),_0x136276(0x1ad))['argument'](_0x136276(0x1af),_0x136276(0x1a9))[_0x136276(0x1b2)](_0x136276(0x1b9),'write\x20structured\x20JSON')[_0x136276(0x1b8)](async(_0x437da5,_0x455e9d,_0x5b1778)=>{const _0x3691b4=_0x136276;let _0x5624de=await r(_0x2cfa13,async()=>await _0x264208[_0x3691b4(0x1a6)][_0x3691b4(0x1b3)]({'key':_0x437da5,'text':_0x455e9d}));i(_0x2cfa13,_0x5b1778,_0x5624de);}),_0x2cfa13['command'](_0x136276(0x19e))[_0x136276(0x18f)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x136276(0x199)](_0x136276(0x19a),_0x136276(0x1ad))[_0x136276(0x1b2)](_0x136276(0x1b9),_0x136276(0x198))[_0x136276(0x1b8)](async(_0x53c62e,_0x5dbbb6)=>{const _0x311c21=_0x136276;let _0x46d388=await r(_0x2cfa13,async()=>await _0x264208[_0x311c21(0x1a6)][_0x311c21(0x19e)]({'key':_0x53c62e}));i(_0x2cfa13,_0x5dbbb6,_0x46d388);}),_0x2cfa13;}async function r(_0x151bbc,_0x2209c6){const _0x4124eb=_0x3882;try{return await _0x2209c6();}catch(_0x588c49){throw _0x588c49 instanceof _0x4d41bf&&_0x151bbc[_0x4124eb(0x192)](_0x588c49[_0x4124eb(0x195)]+':\x20'+_0x588c49[_0x4124eb(0x1b0)],{'code':'config.failed','exitCode':0x1}),_0x588c49;}}function i(_0x73a973,_0x1e6528,_0x21c65a){a(_0x73a973,_0x1e6528,{'entry':_0x21c65a},s(_0x21c65a));}function _0x3882(_0x8baaa5,_0x3365e1){_0x8baaa5=_0x8baaa5-0x18f;const _0x518340=_0x5183();let _0x388234=_0x518340[_0x8baaa5];return _0x388234;}function a(_0x19f12d,_0x1bbc3c,_0x20d635,_0x15c945){const _0x17d0f4=_0x3882;let _0x3af768=_0x1bbc3c['json']===!0x0?JSON[_0x17d0f4(0x1a4)](_0x20d635,null,0x2):_0x15c945;_0x19f12d[_0x17d0f4(0x19b)]()[_0x17d0f4(0x1ae)]?.(_0x3af768+'\x0a');}function o(_0x1566b1){return _0x1566b1['map'](s)['join']('\x0a');}function s(_0x3648c6){const _0x3b2925=_0x3882;let _0x441016=_0x3648c6[_0x3b2925(0x1b6)]===_0x3b2925(0x19e)?'<unset>':c(_0x3648c6[_0x3b2925(0x1aa)]);return _0x3648c6[_0x3b2925(0x1a7)]+'\x20=\x20'+_0x441016+'\x20('+_0x3648c6[_0x3b2925(0x1b6)]+_0x3b2925(0x19c)+_0x3648c6['description'];}function c(_0xb7aa56){const _0x270115=_0x3882;return typeof _0xb7aa56==_0x270115(0x1ac)?_0xb7aa56:JSON[_0x270115(0x1a4)](_0xb7aa56);}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.
|
|
4
|
+
"version": "1.5.2",
|
|
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.
|
|
21
|
+
"@univer-cli/config": "1.5.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|