@univer-cli/config-command 1.4.0 → 1.6.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25804d,_0x5a402d){const _0x1ff371=_0x5a50,_0x2db5d5=_0x25804d();while(!![]){try{const _0x585323=-parseInt(_0x1ff371(0x138))/0x1+-parseInt(_0x1ff371(0x144))/0x2*(parseInt(_0x1ff371(0x137))/0x3)+parseInt(_0x1ff371(0x13c))/0x4+parseInt(_0x1ff371(0x13b))/0x5+-parseInt(_0x1ff371(0x14c))/0x6+-parseInt(_0x1ff371(0x127))/0x7*(parseInt(_0x1ff371(0x12c))/0x8)+parseInt(_0x1ff371(0x140))/0x9;if(_0x585323===_0x5a402d)break;else _0x2db5d5['push'](_0x2db5d5['shift']());}catch(_0x126803){_0x2db5d5['push'](_0x2db5d5['shift']());}}}(_0xd8e7,0xac776));import{ConfigError as _0xe3fa1a}from'@univer-cli/config';import{Command as _0x496c8e}from'commander';function n(_0x2c8600){const _0x8ddfea=_0x5a50;let _0x201531=new _0x496c8e(_0x8ddfea(0x145))[_0x8ddfea(0x147)](_0x8ddfea(0x149))['action'](()=>_0x201531[_0x8ddfea(0x146)]());return _0x201531[_0x8ddfea(0x129)](_0x8ddfea(0x14b))[_0x8ddfea(0x147)](_0x8ddfea(0x135))[_0x8ddfea(0x136)](_0x8ddfea(0x131),_0x8ddfea(0x128))[_0x8ddfea(0x143)](_0x491df5=>{const _0xac41d9=_0x8ddfea;a(_0x201531,_0x491df5,{'path':_0x2c8600[_0xac41d9(0x145)][_0xac41d9(0x14b)]},_0x2c8600[_0xac41d9(0x145)][_0xac41d9(0x14b)]);}),_0x201531['command']('list')[_0x8ddfea(0x147)](_0x8ddfea(0x141))[_0x8ddfea(0x136)](_0x8ddfea(0x131),_0x8ddfea(0x128))[_0x8ddfea(0x143)](async _0x4148f5=>{const _0x1a1b38=_0x8ddfea;let _0x351016=await r(_0x201531,async()=>await _0x2c8600[_0x1a1b38(0x145)][_0x1a1b38(0x12e)]());a(_0x201531,_0x4148f5,{'entries':_0x351016},o(_0x351016));}),_0x201531[_0x8ddfea(0x129)](_0x8ddfea(0x12d))['description']('Get\x20a\x20registered\x20config\x20entry')['argument']('<key>',_0x8ddfea(0x130))[_0x8ddfea(0x136)](_0x8ddfea(0x131),_0x8ddfea(0x128))[_0x8ddfea(0x143)](async(_0x4e22e5,_0x6852)=>{const _0xb091c6=_0x8ddfea;let _0x41331a=await r(_0x201531,async()=>await _0x2c8600[_0xb091c6(0x145)][_0xb091c6(0x12d)]({'key':_0x4e22e5}));i(_0x201531,_0x6852,_0x41331a);}),_0x201531[_0x8ddfea(0x129)](_0x8ddfea(0x148))[_0x8ddfea(0x147)]('Set\x20a\x20registered\x20config\x20entry')['argument'](_0x8ddfea(0x14f),'registered\x20config\x20key')[_0x8ddfea(0x12a)](_0x8ddfea(0x139),'config\x20value\x20as\x20text')[_0x8ddfea(0x136)](_0x8ddfea(0x131),_0x8ddfea(0x128))['action'](async(_0x5a1b18,_0x3f77e4,_0x114056)=>{let _0x4f5b68=await r(_0x201531,async()=>await _0x2c8600['config']['setFromText']({'key':_0x5a1b18,'text':_0x3f77e4}));i(_0x201531,_0x114056,_0x4f5b68);}),_0x201531[_0x8ddfea(0x129)](_0x8ddfea(0x13f))[_0x8ddfea(0x147)](_0x8ddfea(0x133))[_0x8ddfea(0x12a)]('<key>',_0x8ddfea(0x130))[_0x8ddfea(0x136)](_0x8ddfea(0x131),_0x8ddfea(0x128))['action'](async(_0x10d994,_0x2da144)=>{const _0x3770bc=_0x8ddfea;let _0x4613ca=await r(_0x201531,async()=>await _0x2c8600[_0x3770bc(0x145)][_0x3770bc(0x13f)]({'key':_0x10d994}));i(_0x201531,_0x2da144,_0x4613ca);}),_0x201531;}async function r(_0x5a34a2,_0x3da5d0){const _0x5a60b3=_0x5a50;try{return await _0x3da5d0();}catch(_0x478661){throw _0x478661 instanceof _0xe3fa1a&&_0x5a34a2[_0x5a60b3(0x14d)](_0x478661[_0x5a60b3(0x13e)]+':\x20'+_0x478661[_0x5a60b3(0x14e)],{'code':_0x5a60b3(0x13a),'exitCode':0x1}),_0x478661;}}function i(_0x1ade8b,_0x338ea6,_0x1ee600){a(_0x1ade8b,_0x338ea6,{'entry':_0x1ee600},s(_0x1ee600));}function a(_0x2fa8a6,_0x48fb96,_0x6df492,_0x33bbe8){const _0x1f35b9=_0x5a50;let _0x417605=_0x48fb96['json']===!0x0?JSON[_0x1f35b9(0x12b)](_0x6df492,null,0x2):_0x33bbe8;_0x2fa8a6['configureOutput']()[_0x1f35b9(0x142)]?.(_0x417605+'\x0a');}function _0xd8e7(){const _0x2cd074=['Inspect\x20and\x20update\x20application\x20config','<unset>','path','5791242uLrtiU','error','message','<key>','6688290dHFyTD','write\x20structured\x20JSON','command','argument','stringify','8UyoDDI','get','list','key','registered\x20config\x20key','--json','join','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','string','Show\x20the\x20config\x20file\x20path','option','3YCxlSk','464896aiRMjQ','<value>','config.failed','2769250idmKhO','1172888pyiovM','\x20=\x20','code','unset','32270724JKRTpE','List\x20registered\x20config\x20entries','writeOut','action','2681426DUSSlr','config','outputHelp','description','set'];_0xd8e7=function(){return _0x2cd074;};return _0xd8e7();}function o(_0x30195a){const _0x50bd2a=_0x5a50;return _0x30195a['map'](s)[_0x50bd2a(0x132)]('\x0a');}function s(_0x36c731){const _0x419858=_0x5a50;let _0x1afc1d=_0x36c731['source']===_0x419858(0x13f)?_0x419858(0x14a):c(_0x36c731['value']);return _0x36c731[_0x419858(0x12f)]+_0x419858(0x13d)+_0x1afc1d+'\x20('+_0x36c731['source']+')\x0a\x20\x20'+_0x36c731[_0x419858(0x147)];}function _0x5a50(_0x394f92,_0x1cc147){_0x394f92=_0x394f92-0x127;const _0xd8e74b=_0xd8e7();let _0x5a5000=_0xd8e74b[_0x394f92];return _0x5a5000;}function c(_0x2bb3cb){const _0x52518b=_0x5a50;return typeof _0x2bb3cb==_0x52518b(0x134)?_0x2bb3cb:JSON[_0x52518b(0x12b)](_0x2bb3cb);}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.6.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.
|
|
21
|
+
"@univer-cli/config": "1.6.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|