@univer-cli/config-command 1.0.4 → 1.1.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.
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(_0xa30bbd,_0x32043d){const _0xc3f59f=_0xeb98,_0x5947f9=_0xa30bbd();while(!![]){try{const _0x186d2f=-parseInt(_0xc3f59f(0x13d))/0x1*(-parseInt(_0xc3f59f(0x14c))/0x2)+-parseInt(_0xc3f59f(0x156))/0x3+-parseInt(_0xc3f59f(0x13f))/0x4*(-parseInt(_0xc3f59f(0x14b))/0x5)+-parseInt(_0xc3f59f(0x13e))/0x6*(parseInt(_0xc3f59f(0x142))/0x7)+parseInt(_0xc3f59f(0x138))/0x8*(-parseInt(_0xc3f59f(0x140))/0x9)+parseInt(_0xc3f59f(0x13a))/0xa+parseInt(_0xc3f59f(0x153))/0xb;if(_0x186d2f===_0x32043d)break;else _0x5947f9['push'](_0x5947f9['shift']());}catch(_0x46831b){_0x5947f9['push'](_0x5947f9['shift']());}}}(_0x28d0,0xa7c12));import{ConfigError as _0x555ae2}from'@univer-cli/config';import{Command as _0x21268c}from'commander';function n(_0x1557e7){const _0x17363b=_0xeb98;let _0x2cfa5b=new _0x21268c(_0x17363b(0x137))[_0x17363b(0x14d)]('Inspect\x20and\x20update\x20application\x20config')['action'](()=>_0x2cfa5b['outputHelp']());return _0x2cfa5b[_0x17363b(0x15c)](_0x17363b(0x154))['description'](_0x17363b(0x151))['option'](_0x17363b(0x15d),_0x17363b(0x149))[_0x17363b(0x143)](_0x469c9b=>{const _0xa39ca9=_0x17363b;a(_0x2cfa5b,_0x469c9b,{'path':_0x1557e7[_0xa39ca9(0x137)][_0xa39ca9(0x154)]},_0x1557e7[_0xa39ca9(0x137)][_0xa39ca9(0x154)]);}),_0x2cfa5b[_0x17363b(0x15c)]('list')[_0x17363b(0x14d)]('List\x20registered\x20config\x20entries')[_0x17363b(0x14e)](_0x17363b(0x15d),_0x17363b(0x149))[_0x17363b(0x143)](async _0x487da4=>{const _0x371fca=_0x17363b;let _0x29ea19=await r(_0x2cfa5b,async()=>await _0x1557e7['config'][_0x371fca(0x145)]());a(_0x2cfa5b,_0x487da4,{'entries':_0x29ea19},o(_0x29ea19));}),_0x2cfa5b['command'](_0x17363b(0x155))[_0x17363b(0x14d)](_0x17363b(0x13b))[_0x17363b(0x144)](_0x17363b(0x150),_0x17363b(0x157))[_0x17363b(0x14e)](_0x17363b(0x15d),_0x17363b(0x149))['action'](async(_0x278350,_0x521442)=>{const _0x399c1a=_0x17363b;let _0x596f9d=await r(_0x2cfa5b,async()=>await _0x1557e7[_0x399c1a(0x137)][_0x399c1a(0x155)]({'key':_0x278350}));i(_0x2cfa5b,_0x521442,_0x596f9d);}),_0x2cfa5b[_0x17363b(0x15c)]('set')['description'](_0x17363b(0x13c))[_0x17363b(0x144)](_0x17363b(0x150),_0x17363b(0x157))[_0x17363b(0x144)](_0x17363b(0x147),_0x17363b(0x14f))[_0x17363b(0x14e)]('--json',_0x17363b(0x149))['action'](async(_0x13d1d4,_0x34c310,_0x24a97d)=>{const _0x5315c1=_0x17363b;let _0x4e434a=await r(_0x2cfa5b,async()=>await _0x1557e7[_0x5315c1(0x137)]['setFromText']({'key':_0x13d1d4,'text':_0x34c310}));i(_0x2cfa5b,_0x24a97d,_0x4e434a);}),_0x2cfa5b[_0x17363b(0x15c)](_0x17363b(0x15b))[_0x17363b(0x14d)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x17363b(0x144)]('<key>',_0x17363b(0x157))[_0x17363b(0x14e)]('--json',_0x17363b(0x149))[_0x17363b(0x143)](async(_0x18b12d,_0x249c9e)=>{const _0x41d989=_0x17363b;let _0x9222e9=await r(_0x2cfa5b,async()=>await _0x1557e7[_0x41d989(0x137)][_0x41d989(0x15b)]({'key':_0x18b12d}));i(_0x2cfa5b,_0x249c9e,_0x9222e9);}),_0x2cfa5b;}async function r(_0x433c8f,_0x392394){const _0x1d9946=_0xeb98;try{return await _0x392394();}catch(_0x18af4){throw _0x18af4 instanceof _0x555ae2&&_0x433c8f['error'](_0x18af4['code']+':\x20'+_0x18af4[_0x1d9946(0x15f)],{'code':_0x1d9946(0x148),'exitCode':0x1}),_0x18af4;}}function i(_0x344d3f,_0x47d66e,_0x2e5e62){a(_0x344d3f,_0x47d66e,{'entry':_0x2e5e62},s(_0x2e5e62));}function a(_0x562b89,_0x721dc5,_0x3e1a5e,_0x296fb4){const _0x2e3048=_0xeb98;let _0x5cfbbc=_0x721dc5[_0x2e3048(0x14a)]===!0x0?JSON[_0x2e3048(0x158)](_0x3e1a5e,null,0x2):_0x296fb4;_0x562b89['configureOutput']()[_0x2e3048(0x152)]?.(_0x5cfbbc+'\x0a');}function _0x28d0(){const _0x51fee2=['234mBYsfo','string','35Ileycu','action','argument','list','\x20=\x20','<value>','config.failed','write\x20structured\x20JSON','json','376085hztRCh','4786oVjWOH','description','option','config\x20value\x20as\x20text','<key>','Show\x20the\x20config\x20file\x20path','writeOut','16275875vCfSur','path','get','2209128bDdwmM','registered\x20config\x20key','stringify','source','key','unset','command','--json','<unset>','message','config','195264EqBLgW','value','3169720JtNdod','Get\x20a\x20registered\x20config\x20entry','Set\x20a\x20registered\x20config\x20entry','16kEMdsa','454218yCsIHl','32SCXFLP'];_0x28d0=function(){return _0x51fee2;};return _0x28d0();}function o(_0x5d3b1e){return _0x5d3b1e['map'](s)['join']('\x0a');}function s(_0x529a5f){const _0x1b7b53=_0xeb98;let _0x2b3834=_0x529a5f[_0x1b7b53(0x159)]==='unset'?_0x1b7b53(0x15e):c(_0x529a5f[_0x1b7b53(0x139)]);return _0x529a5f[_0x1b7b53(0x15a)]+_0x1b7b53(0x146)+_0x2b3834+'\x20('+_0x529a5f[_0x1b7b53(0x159)]+')\x0a\x20\x20'+_0x529a5f[_0x1b7b53(0x14d)];}function c(_0x32867c){const _0x548a68=_0xeb98;return typeof _0x32867c==_0x548a68(0x141)?_0x32867c:JSON['stringify'](_0x32867c);}function _0xeb98(_0x1bc7e2,_0x23a2e2){_0x1bc7e2=_0x1bc7e2-0x137;const _0x28d076=_0x28d0();let _0xeb98e1=_0x28d076[_0x1bc7e2];return _0xeb98e1;}export{n as createConfigCommand};
1
+ (function(_0x4f158a,_0x5c583a){const _0x3d77ff=_0x3d21,_0x110729=_0x4f158a();while(!![]){try{const _0x2cbbc5=-parseInt(_0x3d77ff(0xf1))/0x1*(parseInt(_0x3d77ff(0x110))/0x2)+-parseInt(_0x3d77ff(0x11c))/0x3*(parseInt(_0x3d77ff(0xfb))/0x4)+parseInt(_0x3d77ff(0x106))/0x5*(parseInt(_0x3d77ff(0x104))/0x6)+-parseInt(_0x3d77ff(0xf8))/0x7*(parseInt(_0x3d77ff(0x109))/0x8)+parseInt(_0x3d77ff(0x102))/0x9+parseInt(_0x3d77ff(0xfc))/0xa+parseInt(_0x3d77ff(0x100))/0xb*(parseInt(_0x3d77ff(0xf6))/0xc);if(_0x2cbbc5===_0x5c583a)break;else _0x110729['push'](_0x110729['shift']());}catch(_0xb5efbe){_0x110729['push'](_0x110729['shift']());}}}(_0x2bce,0x39b9e));import{ConfigError as _0x17344b}from'@univer-cli/config';import{Command as _0xa338b5}from'commander';function n(_0x11785f){const _0x33c7e0=_0x3d21;let _0x2a59b4=new _0xa338b5(_0x33c7e0(0x10d))[_0x33c7e0(0x118)](_0x33c7e0(0x111))[_0x33c7e0(0x108)](()=>_0x2a59b4[_0x33c7e0(0x11a)]());return _0x2a59b4[_0x33c7e0(0xf2)]('path')[_0x33c7e0(0x118)]('Show\x20the\x20config\x20file\x20path')[_0x33c7e0(0xfa)](_0x33c7e0(0xfe),'write\x20structured\x20JSON')['action'](_0x2cd3fb=>{const _0x27f88f=_0x33c7e0;a(_0x2a59b4,_0x2cd3fb,{'path':_0x11785f[_0x27f88f(0x10d)][_0x27f88f(0x10a)]},_0x11785f[_0x27f88f(0x10d)][_0x27f88f(0x10a)]);}),_0x2a59b4[_0x33c7e0(0xf2)](_0x33c7e0(0x103))[_0x33c7e0(0x118)](_0x33c7e0(0x10f))[_0x33c7e0(0xfa)](_0x33c7e0(0xfe),'write\x20structured\x20JSON')[_0x33c7e0(0x108)](async _0x385e80=>{const _0x37b183=_0x33c7e0;let _0x39da00=await r(_0x2a59b4,async()=>await _0x11785f[_0x37b183(0x10d)][_0x37b183(0x103)]());a(_0x2a59b4,_0x385e80,{'entries':_0x39da00},o(_0x39da00));}),_0x2a59b4['command'](_0x33c7e0(0xf3))[_0x33c7e0(0x118)](_0x33c7e0(0x116))[_0x33c7e0(0xff)]('<key>',_0x33c7e0(0xf7))[_0x33c7e0(0xfa)](_0x33c7e0(0xfe),_0x33c7e0(0xfd))['action'](async(_0x182111,_0x604c08)=>{const _0x50813f=_0x33c7e0;let _0x3fd4c4=await r(_0x2a59b4,async()=>await _0x11785f[_0x50813f(0x10d)][_0x50813f(0xf3)]({'key':_0x182111}));i(_0x2a59b4,_0x604c08,_0x3fd4c4);}),_0x2a59b4['command'](_0x33c7e0(0x107))[_0x33c7e0(0x118)](_0x33c7e0(0xf9))['argument']('<key>',_0x33c7e0(0xf7))[_0x33c7e0(0xff)](_0x33c7e0(0x115),_0x33c7e0(0x10b))[_0x33c7e0(0xfa)](_0x33c7e0(0xfe),_0x33c7e0(0xfd))['action'](async(_0x21abc4,_0x454120,_0x4da24c)=>{const _0x5e849d=_0x33c7e0;let _0x4e2867=await r(_0x2a59b4,async()=>await _0x11785f['config'][_0x5e849d(0xf4)]({'key':_0x21abc4,'text':_0x454120}));i(_0x2a59b4,_0x4da24c,_0x4e2867);}),_0x2a59b4['command'](_0x33c7e0(0x10c))[_0x33c7e0(0x118)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x33c7e0(0xff)]('<key>',_0x33c7e0(0xf7))[_0x33c7e0(0xfa)](_0x33c7e0(0xfe),'write\x20structured\x20JSON')[_0x33c7e0(0x108)](async(_0x4f630b,_0x47bcc3)=>{let _0x4e490e=await r(_0x2a59b4,async()=>await _0x11785f['config']['unset']({'key':_0x4f630b}));i(_0x2a59b4,_0x47bcc3,_0x4e490e);}),_0x2a59b4;}function _0x3d21(_0x18e5c5,_0x15933a){_0x18e5c5=_0x18e5c5-0xef;const _0x2bceba=_0x2bce();let _0x3d2108=_0x2bceba[_0x18e5c5];return _0x3d2108;}async function r(_0x5c9ecb,_0x97907a){const _0x2190c5=_0x3d21;try{return await _0x97907a();}catch(_0x536f88){throw _0x536f88 instanceof _0x17344b&&_0x5c9ecb['error'](_0x536f88[_0x2190c5(0x101)]+':\x20'+_0x536f88[_0x2190c5(0xf5)],{'code':_0x2190c5(0x119),'exitCode':0x1}),_0x536f88;}}function i(_0x353078,_0xa7c432,_0xa32220){a(_0x353078,_0xa7c432,{'entry':_0xa32220},s(_0xa32220));}function a(_0x4cb74c,_0x3aeff4,_0x257b86,_0x2ca03e){const _0x298197=_0x3d21;let _0x453dcb=_0x3aeff4['json']===!0x0?JSON[_0x298197(0x117)](_0x257b86,null,0x2):_0x2ca03e;_0x4cb74c[_0x298197(0x105)]()['writeOut']?.(_0x453dcb+'\x0a');}function o(_0x4ccdf9){const _0x56524c=_0x3d21;return _0x4ccdf9[_0x56524c(0x112)](s)[_0x56524c(0x113)]('\x0a');}function s(_0x4e5575){const _0x18b03b=_0x3d21;let _0x3ddbc9=_0x4e5575[_0x18b03b(0x114)]===_0x18b03b(0x10c)?'<unset>':c(_0x4e5575['value']);return _0x4e5575[_0x18b03b(0x10e)]+_0x18b03b(0xf0)+_0x3ddbc9+'\x20('+_0x4e5575[_0x18b03b(0x114)]+_0x18b03b(0x11b)+_0x4e5575[_0x18b03b(0x118)];}function c(_0x55f1c9){const _0x2b2c9f=_0x3d21;return typeof _0x55f1c9==_0x2b2c9f(0xef)?_0x55f1c9:JSON[_0x2b2c9f(0x117)](_0x55f1c9);}export{n as createConfigCommand};function _0x2bce(){const _0x2a0d53=['1824BEylKH','path','config\x20value\x20as\x20text','unset','config','key','List\x20registered\x20config\x20entries','2UwhYQK','Inspect\x20and\x20update\x20application\x20config','map','join','source','<value>','Get\x20a\x20registered\x20config\x20entry','stringify','description','config.failed','outputHelp',')\x0a\x20\x20','18tROFph','string','\x20=\x20','373413occCPE','command','get','setFromText','message','71844DbQoXN','registered\x20config\x20key','13153jJAixF','Set\x20a\x20registered\x20config\x20entry','option','308104mEtFCj','4577750aDKqmW','write\x20structured\x20JSON','--json','argument','1562vAKucH','code','1122399wSlbEA','list','7674StIHUe','configureOutput','265KpBBIH','set','action'];_0x2bce=function(){return _0x2a0d53;};return _0x2bce();}
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.4",
4
+ "version": "1.1.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.0.4"
21
+ "@univer-cli/config": "1.1.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"