@univer-cli/config-command 1.2.0 → 1.3.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.
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(_0x4ccc6d,_0x77c9fc){const _0xf57ede=_0x2309,_0x46f47d=_0x4ccc6d();while(!![]){try{const _0x262851=parseInt(_0xf57ede(0xe8))/0x1+parseInt(_0xf57ede(0xf3))/0x2*(parseInt(_0xf57ede(0xee))/0x3)+-parseInt(_0xf57ede(0xdd))/0x4+-parseInt(_0xf57ede(0xf4))/0x5+-parseInt(_0xf57ede(0xdc))/0x6+parseInt(_0xf57ede(0xe1))/0x7*(parseInt(_0xf57ede(0xda))/0x8)+-parseInt(_0xf57ede(0xe3))/0x9;if(_0x262851===_0x77c9fc)break;else _0x46f47d['push'](_0x46f47d['shift']());}catch(_0x3d9ec){_0x46f47d['push'](_0x46f47d['shift']());}}}(_0x19c9,0xdf3bb));function _0x19c9(){const _0x2681d5=['stringify','description','Set\x20a\x20registered\x20config\x20entry','9325526CmJWVd','<key>','1748493qahkWg','join','list','\x20=\x20','Get\x20a\x20registered\x20config\x20entry','1675913mxzngn','value','writeOut','code','Inspect\x20and\x20update\x20application\x20config','write\x20structured\x20JSON','4043949zVLIgr','get','outputHelp','map','set','2ptKHxf','3208805ZLavIb','--json','string','List\x20registered\x20config\x20entries','json',')\x0a\x20\x20','command','<unset>','configureOutput','<value>','path','source','error','key','config\x20value\x20as\x20text','option','registered\x20config\x20key','action','argument','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','message','config','8FqjOMY','unset','8830908mQHQsL','4535580CpiOQX'];_0x19c9=function(){return _0x2681d5;};return _0x19c9();}import{ConfigError as _0x19aa31}from'@univer-cli/config';import{Command as _0x5ae5ad}from'commander';function _0x2309(_0x3f1a1f,_0x36e4a7){_0x3f1a1f=_0x3f1a1f-0xd6;const _0x19c953=_0x19c9();let _0x230946=_0x19c953[_0x3f1a1f];return _0x230946;}function n(_0x4558f8){const _0x3fc2d8=_0x2309;let _0x211866=new _0x5ae5ad(_0x3fc2d8(0xd9))[_0x3fc2d8(0xdf)](_0x3fc2d8(0xec))[_0x3fc2d8(0x105)](()=>_0x211866[_0x3fc2d8(0xf0)]());return _0x211866[_0x3fc2d8(0xfa)](_0x3fc2d8(0xfe))[_0x3fc2d8(0xdf)]('Show\x20the\x20config\x20file\x20path')['option'](_0x3fc2d8(0xf5),_0x3fc2d8(0xed))[_0x3fc2d8(0x105)](_0x543517=>{const _0x3fc38c=_0x3fc2d8;a(_0x211866,_0x543517,{'path':_0x4558f8[_0x3fc38c(0xd9)]['path']},_0x4558f8[_0x3fc38c(0xd9)][_0x3fc38c(0xfe)]);}),_0x211866[_0x3fc2d8(0xfa)](_0x3fc2d8(0xe5))[_0x3fc2d8(0xdf)](_0x3fc2d8(0xf7))[_0x3fc2d8(0x103)](_0x3fc2d8(0xf5),_0x3fc2d8(0xed))[_0x3fc2d8(0x105)](async _0x7ad8b2=>{const _0x1cc7d4=_0x3fc2d8;let _0x18f63b=await r(_0x211866,async()=>await _0x4558f8[_0x1cc7d4(0xd9)]['list']());a(_0x211866,_0x7ad8b2,{'entries':_0x18f63b},o(_0x18f63b));}),_0x211866['command'](_0x3fc2d8(0xef))[_0x3fc2d8(0xdf)](_0x3fc2d8(0xe7))[_0x3fc2d8(0xd6)](_0x3fc2d8(0xe2),_0x3fc2d8(0x104))['option']('--json',_0x3fc2d8(0xed))[_0x3fc2d8(0x105)](async(_0xfbe806,_0x3f6f6e)=>{const _0x5abd03=_0x3fc2d8;let _0x28168f=await r(_0x211866,async()=>await _0x4558f8[_0x5abd03(0xd9)][_0x5abd03(0xef)]({'key':_0xfbe806}));i(_0x211866,_0x3f6f6e,_0x28168f);}),_0x211866[_0x3fc2d8(0xfa)](_0x3fc2d8(0xf2))[_0x3fc2d8(0xdf)](_0x3fc2d8(0xe0))[_0x3fc2d8(0xd6)]('<key>',_0x3fc2d8(0x104))[_0x3fc2d8(0xd6)](_0x3fc2d8(0xfd),_0x3fc2d8(0x102))[_0x3fc2d8(0x103)]('--json',_0x3fc2d8(0xed))['action'](async(_0x2d6939,_0x1fcb65,_0x4872d2)=>{const _0x299d9a=_0x3fc2d8;let _0x3b8ea5=await r(_0x211866,async()=>await _0x4558f8[_0x299d9a(0xd9)]['setFromText']({'key':_0x2d6939,'text':_0x1fcb65}));i(_0x211866,_0x4872d2,_0x3b8ea5);}),_0x211866[_0x3fc2d8(0xfa)](_0x3fc2d8(0xdb))[_0x3fc2d8(0xdf)](_0x3fc2d8(0xd7))[_0x3fc2d8(0xd6)](_0x3fc2d8(0xe2),_0x3fc2d8(0x104))[_0x3fc2d8(0x103)]('--json','write\x20structured\x20JSON')['action'](async(_0x404a4a,_0x24be64)=>{const _0x29a818=_0x3fc2d8;let _0x359930=await r(_0x211866,async()=>await _0x4558f8[_0x29a818(0xd9)][_0x29a818(0xdb)]({'key':_0x404a4a}));i(_0x211866,_0x24be64,_0x359930);}),_0x211866;}async function r(_0x21ab0e,_0x3b5620){const _0x248499=_0x2309;try{return await _0x3b5620();}catch(_0x58fb65){throw _0x58fb65 instanceof _0x19aa31&&_0x21ab0e[_0x248499(0x100)](_0x58fb65[_0x248499(0xeb)]+':\x20'+_0x58fb65[_0x248499(0xd8)],{'code':'config.failed','exitCode':0x1}),_0x58fb65;}}function i(_0x48f025,_0x35329b,_0x417758){a(_0x48f025,_0x35329b,{'entry':_0x417758},s(_0x417758));}function a(_0x24c1e2,_0x19825d,_0x2ce39f,_0xfa453d){const _0x1490bc=_0x2309;let _0x26dc80=_0x19825d[_0x1490bc(0xf8)]===!0x0?JSON[_0x1490bc(0xde)](_0x2ce39f,null,0x2):_0xfa453d;_0x24c1e2[_0x1490bc(0xfc)]()[_0x1490bc(0xea)]?.(_0x26dc80+'\x0a');}function o(_0x4092c3){const _0x2eec93=_0x2309;return _0x4092c3[_0x2eec93(0xf1)](s)[_0x2eec93(0xe4)]('\x0a');}function s(_0x102a6f){const _0x94013a=_0x2309;let _0x50518b=_0x102a6f[_0x94013a(0xff)]==='unset'?_0x94013a(0xfb):c(_0x102a6f[_0x94013a(0xe9)]);return _0x102a6f[_0x94013a(0x101)]+_0x94013a(0xe6)+_0x50518b+'\x20('+_0x102a6f['source']+_0x94013a(0xf9)+_0x102a6f[_0x94013a(0xdf)];}function c(_0x4d67a4){const _0x338733=_0x2309;return typeof _0x4d67a4==_0x338733(0xf6)?_0x4d67a4:JSON['stringify'](_0x4d67a4);}export{n as createConfigCommand};
1
+ (function(_0xb504a6,_0x3b8222){const _0x3ec059=_0xf9c2,_0x2ea007=_0xb504a6();while(!![]){try{const _0x18ab2c=-parseInt(_0x3ec059(0x1e5))/0x1+-parseInt(_0x3ec059(0x209))/0x2*(parseInt(_0x3ec059(0x200))/0x3)+-parseInt(_0x3ec059(0x20a))/0x4+parseInt(_0x3ec059(0x1e9))/0x5+-parseInt(_0x3ec059(0x204))/0x6*(-parseInt(_0x3ec059(0x1e7))/0x7)+-parseInt(_0x3ec059(0x203))/0x8+-parseInt(_0x3ec059(0x1f1))/0x9*(-parseInt(_0x3ec059(0x207))/0xa);if(_0x18ab2c===_0x3b8222)break;else _0x2ea007['push'](_0x2ea007['shift']());}catch(_0x2aaa88){_0x2ea007['push'](_0x2ea007['shift']());}}}(_0x52b6,0x31fe8));import{ConfigError as _0x515c9d}from'@univer-cli/config';import{Command as _0x378616}from'commander';function n(_0x294570){const _0x4a3708=_0xf9c2;let _0x1d24d1=new _0x378616('config')[_0x4a3708(0x1ed)](_0x4a3708(0x1ec))[_0x4a3708(0x1e2)](()=>_0x1d24d1[_0x4a3708(0x1f9)]());return _0x1d24d1[_0x4a3708(0x1fa)](_0x4a3708(0x1e1))['description'](_0x4a3708(0x1f7))[_0x4a3708(0x1e8)](_0x4a3708(0x201),_0x4a3708(0x1f4))[_0x4a3708(0x1e2)](_0x9c175e=>{const _0x149d7c=_0x4a3708;a(_0x1d24d1,_0x9c175e,{'path':_0x294570['config'][_0x149d7c(0x1e1)]},_0x294570['config'][_0x149d7c(0x1e1)]);}),_0x1d24d1[_0x4a3708(0x1fa)](_0x4a3708(0x1f2))[_0x4a3708(0x1ed)](_0x4a3708(0x1df))[_0x4a3708(0x1e8)]('--json','write\x20structured\x20JSON')[_0x4a3708(0x1e2)](async _0x1b8e26=>{const _0x1fc721=_0x4a3708;let _0xc26ae3=await r(_0x1d24d1,async()=>await _0x294570[_0x1fc721(0x206)][_0x1fc721(0x1f2)]());a(_0x1d24d1,_0x1b8e26,{'entries':_0xc26ae3},o(_0xc26ae3));}),_0x1d24d1[_0x4a3708(0x1fa)]('get')['description']('Get\x20a\x20registered\x20config\x20entry')['argument']('<key>',_0x4a3708(0x1ea))[_0x4a3708(0x1e8)]('--json',_0x4a3708(0x1f4))[_0x4a3708(0x1e2)](async(_0x4acdb7,_0x1fe090)=>{const _0x5447d6=_0x4a3708;let _0xf33c41=await r(_0x1d24d1,async()=>await _0x294570[_0x5447d6(0x206)][_0x5447d6(0x1e6)]({'key':_0x4acdb7}));i(_0x1d24d1,_0x1fe090,_0xf33c41);}),_0x1d24d1[_0x4a3708(0x1fa)](_0x4a3708(0x1fc))['description'](_0x4a3708(0x20b))[_0x4a3708(0x202)](_0x4a3708(0x1fe),'registered\x20config\x20key')[_0x4a3708(0x202)](_0x4a3708(0x205),_0x4a3708(0x1eb))[_0x4a3708(0x1e8)](_0x4a3708(0x201),_0x4a3708(0x1f4))[_0x4a3708(0x1e2)](async(_0x40d76d,_0xe5c669,_0x174358)=>{const _0x1d77d0=_0x4a3708;let _0x593479=await r(_0x1d24d1,async()=>await _0x294570[_0x1d77d0(0x206)]['setFromText']({'key':_0x40d76d,'text':_0xe5c669}));i(_0x1d24d1,_0x174358,_0x593479);}),_0x1d24d1[_0x4a3708(0x1fa)](_0x4a3708(0x208))[_0x4a3708(0x1ed)](_0x4a3708(0x1f6))[_0x4a3708(0x202)](_0x4a3708(0x1fe),_0x4a3708(0x1ea))[_0x4a3708(0x1e8)](_0x4a3708(0x201),_0x4a3708(0x1f4))[_0x4a3708(0x1e2)](async(_0x3c89d8,_0x26082f)=>{const _0x7c8db2=_0x4a3708;let _0x14db18=await r(_0x1d24d1,async()=>await _0x294570[_0x7c8db2(0x206)][_0x7c8db2(0x208)]({'key':_0x3c89d8}));i(_0x1d24d1,_0x26082f,_0x14db18);}),_0x1d24d1;}function _0x52b6(){const _0x431065=['6360zgsgwo','<value>','config','20TXzxSP','unset','136542sOSuVv','807384MwrRHS','Set\x20a\x20registered\x20config\x20entry','<unset>','List\x20registered\x20config\x20entries','json','path','action','message','key','141177TcAGST','get','917VZyfzJ','option','512130fQMfPi','registered\x20config\x20key','config\x20value\x20as\x20text','Inspect\x20and\x20update\x20application\x20config','description','source','configureOutput','config.failed','3571173TjHKLD','list','\x20=\x20','write\x20structured\x20JSON','join','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','Show\x20the\x20config\x20file\x20path','value','outputHelp','command','stringify','set','code','<key>','map','9oRSwSD','--json','argument','2258144qkDMqL'];_0x52b6=function(){return _0x431065;};return _0x52b6();}async function r(_0x42a42c,_0x2d8c72){const _0x1696d8=_0xf9c2;try{return await _0x2d8c72();}catch(_0x5393ce){throw _0x5393ce instanceof _0x515c9d&&_0x42a42c['error'](_0x5393ce[_0x1696d8(0x1fd)]+':\x20'+_0x5393ce[_0x1696d8(0x1e3)],{'code':_0x1696d8(0x1f0),'exitCode':0x1}),_0x5393ce;}}function i(_0x29a411,_0x16d1dc,_0x3473d2){a(_0x29a411,_0x16d1dc,{'entry':_0x3473d2},s(_0x3473d2));}function _0xf9c2(_0x4d17e7,_0x86b7e6){_0x4d17e7=_0x4d17e7-0x1df;const _0x52b6c3=_0x52b6();let _0x5c92b1=_0x52b6c3[_0x4d17e7];return _0x5c92b1;}function a(_0x248614,_0x486ad8,_0xc2043,_0x85a284){const _0x5d50b6=_0xf9c2;let _0x574124=_0x486ad8[_0x5d50b6(0x1e0)]===!0x0?JSON[_0x5d50b6(0x1fb)](_0xc2043,null,0x2):_0x85a284;_0x248614[_0x5d50b6(0x1ef)]()['writeOut']?.(_0x574124+'\x0a');}function o(_0x1ca8ad){const _0x2bb22=_0xf9c2;return _0x1ca8ad[_0x2bb22(0x1ff)](s)[_0x2bb22(0x1f5)]('\x0a');}function s(_0x133ed2){const _0x7d6577=_0xf9c2;let _0xfb29a7=_0x133ed2['source']==='unset'?_0x7d6577(0x20c):c(_0x133ed2[_0x7d6577(0x1f8)]);return _0x133ed2[_0x7d6577(0x1e4)]+_0x7d6577(0x1f3)+_0xfb29a7+'\x20('+_0x133ed2[_0x7d6577(0x1ee)]+')\x0a\x20\x20'+_0x133ed2[_0x7d6577(0x1ed)];}function c(_0x35b9be){const _0xfd7de=_0xf9c2;return typeof _0x35b9be=='string'?_0x35b9be:JSON[_0xfd7de(0x1fb)](_0x35b9be);}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.2.0",
4
+ "version": "1.3.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.2.0"
21
+ "@univer-cli/config": "1.3.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"