@univer-cli/config-command 1.6.0 → 1.6.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb25012,_0x5df995){const _0x276760=_0x5e21,_0x5d3f5b=_0xb25012();while(!![]){try{const _0x5a0b03=parseInt(_0x276760(0x167))/0x1*(parseInt(_0x276760(0x148))/0x2)+parseInt(_0x276760(0x157))/0x3+-parseInt(_0x276760(0x162))/0x4+-parseInt(_0x276760(0x16a))/0x5+-parseInt(_0x276760(0x165))/0x6*(parseInt(_0x276760(0x16c))/0x7)+parseInt(_0x276760(0x156))/0x8+-parseInt(_0x276760(0x166))/0x9*(-parseInt(_0x276760(0x15a))/0xa);if(_0x5a0b03===_0x5df995)break;else _0x5d3f5b['push'](_0x5d3f5b['shift']());}catch(_0x51a066){_0x5d3f5b['push'](_0x5d3f5b['shift']());}}}(_0x197c,0xc46db));function _0x197c(){const _0x318aaa=['3652959bkmdSr','writeOut','set','474860NDleyL','get','Show\x20the\x20config\x20file\x20path','command','error','list','write\x20structured\x20JSON','configureOutput','5813252TriORz','value','source','118278rKWROg','405pVhfmE','752729CezKLV','option','string','5005865fMnVWR','description','553SbHJRC','config','argument','config\x20value\x20as\x20text','outputHelp','--json','join','2BBJcQF','Get\x20a\x20registered\x20config\x20entry','code','message','map','stringify','registered\x20config\x20key','path','Set\x20a\x20registered\x20config\x20entry','action','<key>','unset','<value>','Inspect\x20and\x20update\x20application\x20config','5673056NRABxs'];_0x197c=function(){return _0x318aaa;};return _0x197c();}import{ConfigError as _0x4fc1fa}from'@univer-cli/config';import{Command as _0x613f1e}from'commander';function n(_0x4a60bc){const _0x1a2901=_0x5e21;let _0x3c27c1=new _0x613f1e('config')[_0x1a2901(0x16b)](_0x1a2901(0x155))[_0x1a2901(0x151)](()=>_0x3c27c1[_0x1a2901(0x170)]());return _0x3c27c1[_0x1a2901(0x15d)]('path')[_0x1a2901(0x16b)](_0x1a2901(0x15c))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](_0x31d6af=>{const _0x447d99=_0x1a2901;a(_0x3c27c1,_0x31d6af,{'path':_0x4a60bc[_0x447d99(0x16d)]['path']},_0x4a60bc[_0x447d99(0x16d)][_0x447d99(0x14f)]);}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x15f))[_0x1a2901(0x16b)]('List\x20registered\x20config\x20entries')[_0x1a2901(0x168)]('--json',_0x1a2901(0x160))[_0x1a2901(0x151)](async _0x1a9ab6=>{const _0x1759f5=_0x1a2901;let _0xe275f1=await r(_0x3c27c1,async()=>await _0x4a60bc[_0x1759f5(0x16d)][_0x1759f5(0x15f)]());a(_0x3c27c1,_0x1a9ab6,{'entries':_0xe275f1},o(_0xe275f1));}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x15b))[_0x1a2901(0x16b)](_0x1a2901(0x149))['argument'](_0x1a2901(0x152),'registered\x20config\x20key')[_0x1a2901(0x168)](_0x1a2901(0x171),'write\x20structured\x20JSON')['action'](async(_0x41f6a0,_0x1a4605)=>{const _0x1d429f=_0x1a2901;let _0x154ebd=await r(_0x3c27c1,async()=>await _0x4a60bc['config'][_0x1d429f(0x15b)]({'key':_0x41f6a0}));i(_0x3c27c1,_0x1a4605,_0x154ebd);}),_0x3c27c1['command'](_0x1a2901(0x159))[_0x1a2901(0x16b)](_0x1a2901(0x150))[_0x1a2901(0x16e)](_0x1a2901(0x152),'registered\x20config\x20key')[_0x1a2901(0x16e)](_0x1a2901(0x154),_0x1a2901(0x16f))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](async(_0x47178e,_0x943373,_0x543d4f)=>{const _0x16673e=_0x1a2901;let _0x58966e=await r(_0x3c27c1,async()=>await _0x4a60bc[_0x16673e(0x16d)]['setFromText']({'key':_0x47178e,'text':_0x943373}));i(_0x3c27c1,_0x543d4f,_0x58966e);}),_0x3c27c1[_0x1a2901(0x15d)](_0x1a2901(0x153))['description']('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x1a2901(0x16e)](_0x1a2901(0x152),_0x1a2901(0x14e))[_0x1a2901(0x168)](_0x1a2901(0x171),_0x1a2901(0x160))[_0x1a2901(0x151)](async(_0x9c9165,_0x395974)=>{const _0x231659=_0x1a2901;let _0x5cdbf7=await r(_0x3c27c1,async()=>await _0x4a60bc['config'][_0x231659(0x153)]({'key':_0x9c9165}));i(_0x3c27c1,_0x395974,_0x5cdbf7);}),_0x3c27c1;}async function r(_0x4ef03b,_0x77840f){const _0x5b1ab6=_0x5e21;try{return await _0x77840f();}catch(_0x7491c0){throw _0x7491c0 instanceof _0x4fc1fa&&_0x4ef03b[_0x5b1ab6(0x15e)](_0x7491c0[_0x5b1ab6(0x14a)]+':\x20'+_0x7491c0[_0x5b1ab6(0x14b)],{'code':'config.failed','exitCode':0x1}),_0x7491c0;}}function i(_0x4e3288,_0x3a7eee,_0x149e87){a(_0x4e3288,_0x3a7eee,{'entry':_0x149e87},s(_0x149e87));}function a(_0x3f98bb,_0x3fd21d,_0x2f69ba,_0x3056e5){const _0x3c64dd=_0x5e21;let _0x5701d8=_0x3fd21d['json']===!0x0?JSON[_0x3c64dd(0x14d)](_0x2f69ba,null,0x2):_0x3056e5;_0x3f98bb[_0x3c64dd(0x161)]()[_0x3c64dd(0x158)]?.(_0x5701d8+'\x0a');}function o(_0x1e830a){const _0x2a120e=_0x5e21;return _0x1e830a[_0x2a120e(0x14c)](s)[_0x2a120e(0x147)]('\x0a');}function s(_0x3f2569){const _0x308332=_0x5e21;let _0x12a191=_0x3f2569[_0x308332(0x164)]===_0x308332(0x153)?'<unset>':c(_0x3f2569[_0x308332(0x163)]);return _0x3f2569['key']+'\x20=\x20'+_0x12a191+'\x20('+_0x3f2569[_0x308332(0x164)]+')\x0a\x20\x20'+_0x3f2569[_0x308332(0x16b)];}function _0x5e21(_0x3d58e7,_0x17af0e){_0x3d58e7=_0x3d58e7-0x147;const _0x197c46=_0x197c();let _0x5e2168=_0x197c46[_0x3d58e7];return _0x5e2168;}function c(_0x225a41){const _0x31adbe=_0x5e21;return typeof _0x225a41==_0x31adbe(0x169)?_0x225a41:JSON[_0x31adbe(0x14d)](_0x225a41);}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.
|
|
4
|
+
"version": "1.6.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.6.
|
|
21
|
+
"@univer-cli/config": "1.6.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|