@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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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.
|
|
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.
|
|
21
|
+
"@univer-cli/config": "1.7.0-alpha.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|