@univer-cli/config-command 1.0.1 → 1.0.3

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(_0x276e44,_0x29fe3f){const _0x35e519=_0x526c,_0x2198a1=_0x276e44();while(!![]){try{const _0x3a6b56=parseInt(_0x35e519(0xf0))/0x1*(-parseInt(_0x35e519(0xf3))/0x2)+-parseInt(_0x35e519(0xe7))/0x3+-parseInt(_0x35e519(0xef))/0x4+parseInt(_0x35e519(0xd2))/0x5*(-parseInt(_0x35e519(0xf2))/0x6)+-parseInt(_0x35e519(0xdb))/0x7+parseInt(_0x35e519(0xd1))/0x8+parseInt(_0x35e519(0xe8))/0x9;if(_0x3a6b56===_0x29fe3f)break;else _0x2198a1['push'](_0x2198a1['shift']());}catch(_0x34894b){_0x2198a1['push'](_0x2198a1['shift']());}}}(_0x5881,0x26d2c));import{ConfigError as _0x39388d}from'@univer-cli/config';import{Command as _0x31d5be}from'commander';function n(_0x31e74d){const _0x51d68e=_0x526c;let _0x3e297c=new _0x31d5be('config')[_0x51d68e(0xc9)]('Inspect\x20and\x20update\x20application\x20config')[_0x51d68e(0xd0)](()=>_0x3e297c[_0x51d68e(0xe0)]());return _0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe9))[_0x51d68e(0xc9)](_0x51d68e(0xc8))[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](_0x2a8459=>{const _0x1ffc2a=_0x51d68e;a(_0x3e297c,_0x2a8459,{'path':_0x31e74d[_0x1ffc2a(0xf1)][_0x1ffc2a(0xe9)]},_0x31e74d[_0x1ffc2a(0xf1)][_0x1ffc2a(0xe9)]);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xf5))[_0x51d68e(0xc9)](_0x51d68e(0xcd))['option'](_0x51d68e(0xcb),_0x51d68e(0xce))['action'](async _0x451c0b=>{const _0x173462=_0x51d68e;let _0x3c726b=await r(_0x3e297c,async()=>await _0x31e74d[_0x173462(0xf1)][_0x173462(0xf5)]());a(_0x3e297c,_0x451c0b,{'entries':_0x3c726b},o(_0x3c726b));}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xd3))[_0x51d68e(0xc9)](_0x51d68e(0xeb))['argument']('<key>','registered\x20config\x20key')[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))['action'](async(_0x496632,_0x4b6fe6)=>{const _0x574a26=_0x51d68e;let _0x315ded=await r(_0x3e297c,async()=>await _0x31e74d[_0x574a26(0xf1)][_0x574a26(0xd3)]({'key':_0x496632}));i(_0x3e297c,_0x4b6fe6,_0x315ded);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe1))[_0x51d68e(0xc9)](_0x51d68e(0xe2))[_0x51d68e(0xdc)]('<key>','registered\x20config\x20key')[_0x51d68e(0xdc)](_0x51d68e(0xd5),_0x51d68e(0xda))['option'](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](async(_0x35af13,_0x5a8899,_0x2609b1)=>{const _0x4dae5e=_0x51d68e;let _0x57ac7f=await r(_0x3e297c,async()=>await _0x31e74d[_0x4dae5e(0xf1)][_0x4dae5e(0xec)]({'key':_0x35af13,'text':_0x5a8899}));i(_0x3e297c,_0x2609b1,_0x57ac7f);}),_0x3e297c[_0x51d68e(0xed)](_0x51d68e(0xe6))[_0x51d68e(0xc9)](_0x51d68e(0xd4))[_0x51d68e(0xdc)]('<key>',_0x51d68e(0xe3))[_0x51d68e(0xde)](_0x51d68e(0xcb),_0x51d68e(0xce))[_0x51d68e(0xd0)](async(_0x1ad8a3,_0x19a7a1)=>{const _0x3d0736=_0x51d68e;let _0x50433e=await r(_0x3e297c,async()=>await _0x31e74d[_0x3d0736(0xf1)][_0x3d0736(0xe6)]({'key':_0x1ad8a3}));i(_0x3e297c,_0x19a7a1,_0x50433e);}),_0x3e297c;}async function r(_0x198cf9,_0x315237){const _0x1a39cf=_0x526c;try{return await _0x315237();}catch(_0x4eef1f){throw _0x4eef1f instanceof _0x39388d&&_0x198cf9[_0x1a39cf(0xcf)](_0x4eef1f[_0x1a39cf(0xca)]+':\x20'+_0x4eef1f['message'],{'code':_0x1a39cf(0xd7),'exitCode':0x1}),_0x4eef1f;}}function i(_0x1c734b,_0x16289e,_0x3666a6){a(_0x1c734b,_0x16289e,{'entry':_0x3666a6},s(_0x3666a6));}function _0x526c(_0x188d1a,_0x5a743c){_0x188d1a=_0x188d1a-0xc8;const _0x588175=_0x5881();let _0x526ce3=_0x588175[_0x188d1a];return _0x526ce3;}function a(_0x1ce085,_0x2a5547,_0x5d288e,_0x10f4a3){const _0x2e4ffb=_0x526c;let _0x533615=_0x2a5547[_0x2e4ffb(0xd8)]===!0x0?JSON[_0x2e4ffb(0xcc)](_0x5d288e,null,0x2):_0x10f4a3;_0x1ce085['configureOutput']()[_0x2e4ffb(0xdf)]?.(_0x533615+'\x0a');}function _0x5881(){const _0x52244b=['argument','string','option','writeOut','outputHelp','set','Set\x20a\x20registered\x20config\x20entry','registered\x20config\x20key','map','key','unset','831414jpLMaU','8652564NbWlyW','path','join','Get\x20a\x20registered\x20config\x20entry','setFromText','command','<unset>','332460qlkxQb','9qXtZoW','config','286386PDKlfm','57662qBkOpC','source','list','Show\x20the\x20config\x20file\x20path','description','code','--json','stringify','List\x20registered\x20config\x20entries','write\x20structured\x20JSON','error','action','114168bypswk','20iJJTvj','get','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','<value>','value','config.failed','json','\x20=\x20','config\x20value\x20as\x20text','41937DXPvWy'];_0x5881=function(){return _0x52244b;};return _0x5881();}function o(_0x542e4f){const _0x13366e=_0x526c;return _0x542e4f[_0x13366e(0xe4)](s)[_0x13366e(0xea)]('\x0a');}function s(_0x2b4746){const _0xcb20c5=_0x526c;let _0x35dd64=_0x2b4746[_0xcb20c5(0xf4)]===_0xcb20c5(0xe6)?_0xcb20c5(0xee):c(_0x2b4746[_0xcb20c5(0xd6)]);return _0x2b4746[_0xcb20c5(0xe5)]+_0xcb20c5(0xd9)+_0x35dd64+'\x20('+_0x2b4746[_0xcb20c5(0xf4)]+')\x0a\x20\x20'+_0x2b4746[_0xcb20c5(0xc9)];}function c(_0x40c603){const _0x2b3447=_0x526c;return typeof _0x40c603==_0x2b3447(0xdd)?_0x40c603:JSON[_0x2b3447(0xcc)](_0x40c603);}export{n as createConfigCommand};
1
+ (function(_0x338bef,_0x753aa8){const _0x16b105=_0x14c3,_0x1097eb=_0x338bef();while(!![]){try{const _0x556fcc=parseInt(_0x16b105(0x104))/0x1+-parseInt(_0x16b105(0xee))/0x2+-parseInt(_0x16b105(0x107))/0x3*(parseInt(_0x16b105(0xf1))/0x4)+parseInt(_0x16b105(0xfe))/0x5*(parseInt(_0x16b105(0xe3))/0x6)+parseInt(_0x16b105(0xeb))/0x7+parseInt(_0x16b105(0xfc))/0x8*(parseInt(_0x16b105(0xe4))/0x9)+parseInt(_0x16b105(0xf9))/0xa;if(_0x556fcc===_0x753aa8)break;else _0x1097eb['push'](_0x1097eb['shift']());}catch(_0x2bd1de){_0x1097eb['push'](_0x1097eb['shift']());}}}(_0x2263,0x7ab8a));import{ConfigError as _0x30c8ee}from'@univer-cli/config';import{Command as _0x76ec1e}from'commander';function n(_0x1a892c){const _0x13d5e0=_0x14c3;let _0x611213=new _0x76ec1e(_0x13d5e0(0xf0))[_0x13d5e0(0x10a)](_0x13d5e0(0x100))[_0x13d5e0(0xe6)](()=>_0x611213[_0x13d5e0(0x105)]());return _0x611213['command'](_0x13d5e0(0xf3))['description']('Show\x20the\x20config\x20file\x20path')['option'](_0x13d5e0(0xf7),'write\x20structured\x20JSON')['action'](_0x34f9e8=>{const _0x2a8794=_0x13d5e0;a(_0x611213,_0x34f9e8,{'path':_0x1a892c['config'][_0x2a8794(0xf3)]},_0x1a892c[_0x2a8794(0xf0)][_0x2a8794(0xf3)]);}),_0x611213['command'](_0x13d5e0(0xec))['description']('List\x20registered\x20config\x20entries')[_0x13d5e0(0xfb)](_0x13d5e0(0xf7),_0x13d5e0(0x10b))[_0x13d5e0(0xe6)](async _0x42859c=>{const _0x341e3f=_0x13d5e0;let _0x5f2fd3=await r(_0x611213,async()=>await _0x1a892c[_0x341e3f(0xf0)][_0x341e3f(0xec)]());a(_0x611213,_0x42859c,{'entries':_0x5f2fd3},o(_0x5f2fd3));}),_0x611213['command'](_0x13d5e0(0xed))[_0x13d5e0(0x10a)](_0x13d5e0(0xe9))[_0x13d5e0(0xf2)](_0x13d5e0(0xe8),_0x13d5e0(0xf4))[_0x13d5e0(0xfb)](_0x13d5e0(0xf7),_0x13d5e0(0x10b))[_0x13d5e0(0xe6)](async(_0x2bf627,_0x12a9ac)=>{const _0x503e3b=_0x13d5e0;let _0x5e6243=await r(_0x611213,async()=>await _0x1a892c[_0x503e3b(0xf0)]['get']({'key':_0x2bf627}));i(_0x611213,_0x12a9ac,_0x5e6243);}),_0x611213[_0x13d5e0(0xfa)](_0x13d5e0(0xe7))['description'](_0x13d5e0(0xf5))[_0x13d5e0(0xf2)](_0x13d5e0(0xe8),_0x13d5e0(0xf4))[_0x13d5e0(0xf2)](_0x13d5e0(0xe5),'config\x20value\x20as\x20text')[_0x13d5e0(0xfb)](_0x13d5e0(0xf7),_0x13d5e0(0x10b))[_0x13d5e0(0xe6)](async(_0x23a304,_0x18329b,_0x4fd4c6)=>{const _0xcb4c9e=_0x13d5e0;let _0x34b765=await r(_0x611213,async()=>await _0x1a892c[_0xcb4c9e(0xf0)]['setFromText']({'key':_0x23a304,'text':_0x18329b}));i(_0x611213,_0x4fd4c6,_0x34b765);}),_0x611213[_0x13d5e0(0xfa)](_0x13d5e0(0x108))[_0x13d5e0(0x10a)](_0x13d5e0(0x103))[_0x13d5e0(0xf2)]('<key>',_0x13d5e0(0xf4))['option']('--json',_0x13d5e0(0x10b))['action'](async(_0x2dc3a6,_0xa2a774)=>{const _0x5186b9=_0x13d5e0;let _0x2ac769=await r(_0x611213,async()=>await _0x1a892c[_0x5186b9(0xf0)][_0x5186b9(0x108)]({'key':_0x2dc3a6}));i(_0x611213,_0xa2a774,_0x2ac769);}),_0x611213;}async function r(_0x508d41,_0x5d2d05){const _0x2aae48=_0x14c3;try{return await _0x5d2d05();}catch(_0x2b395e){throw _0x2b395e instanceof _0x30c8ee&&_0x508d41[_0x2aae48(0xfd)](_0x2b395e['code']+':\x20'+_0x2b395e[_0x2aae48(0xea)],{'code':'config.failed','exitCode':0x1}),_0x2b395e;}}function i(_0x41c00e,_0x199724,_0x3126a1){a(_0x41c00e,_0x199724,{'entry':_0x3126a1},s(_0x3126a1));}function a(_0x2cadc0,_0x584e55,_0x5a51c2,_0x3fe80d){const _0xa41b81=_0x14c3;let _0x1219ef=_0x584e55[_0xa41b81(0xf6)]===!0x0?JSON[_0xa41b81(0x102)](_0x5a51c2,null,0x2):_0x3fe80d;_0x2cadc0['configureOutput']()['writeOut']?.(_0x1219ef+'\x0a');}function _0x14c3(_0x318e2e,_0x350281){_0x318e2e=_0x318e2e-0xe3;const _0x226378=_0x2263();let _0x14c315=_0x226378[_0x318e2e];return _0x14c315;}function o(_0x1070a4){const _0x3f486f=_0x14c3;return _0x1070a4['map'](s)[_0x3f486f(0xef)]('\x0a');}function _0x2263(){const _0x338274=['option','32bxRAhW','error','10tijcBK','\x20=\x20','Inspect\x20and\x20update\x20application\x20config','source','stringify','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','28484Vetrij','outputHelp','key','70977XpRFjl','unset','value','description','write\x20structured\x20JSON','2981598wjuUIK','2100069GGzbxN','<value>','action','set','<key>','Get\x20a\x20registered\x20config\x20entry','message','1380827dvmYWL','list','get','1864678EUIilt','join','config','132DscPib','argument','path','registered\x20config\x20key','Set\x20a\x20registered\x20config\x20entry','json','--json',')\x0a\x20\x20','627770EcQqkK','command'];_0x2263=function(){return _0x338274;};return _0x2263();}function s(_0x3d269a){const _0x2fdccf=_0x14c3;let _0xf61e0a=_0x3d269a[_0x2fdccf(0x101)]===_0x2fdccf(0x108)?'<unset>':c(_0x3d269a[_0x2fdccf(0x109)]);return _0x3d269a[_0x2fdccf(0x106)]+_0x2fdccf(0xff)+_0xf61e0a+'\x20('+_0x3d269a['source']+_0x2fdccf(0xf8)+_0x3d269a[_0x2fdccf(0x10a)];}function c(_0x5950fc){const _0x58941d=_0x14c3;return typeof _0x5950fc=='string'?_0x5950fc:JSON[_0x58941d(0x102)](_0x5950fc);}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.0.1",
4
+ "version": "1.0.3",
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.0.1"
21
+ "@univer-cli/config": "1.0.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"