@univer-cli/config-command 1.3.1 → 1.4.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(_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};
1
+ (function(_0x58bd24,_0x1faab1){const _0x38efa2=_0x3177,_0x3d5a23=_0x58bd24();while(!![]){try{const _0x20a570=-parseInt(_0x38efa2(0x19f))/0x1+parseInt(_0x38efa2(0x17c))/0x2*(parseInt(_0x38efa2(0x192))/0x3)+-parseInt(_0x38efa2(0x18f))/0x4+-parseInt(_0x38efa2(0x193))/0x5*(-parseInt(_0x38efa2(0x190))/0x6)+parseInt(_0x38efa2(0x188))/0x7+parseInt(_0x38efa2(0x19c))/0x8*(-parseInt(_0x38efa2(0x17f))/0x9)+-parseInt(_0x38efa2(0x181))/0xa*(-parseInt(_0x38efa2(0x1a2))/0xb);if(_0x20a570===_0x1faab1)break;else _0x3d5a23['push'](_0x3d5a23['shift']());}catch(_0x8d5958){_0x3d5a23['push'](_0x3d5a23['shift']());}}}(_0x3acf,0x870f0));import{ConfigError as _0x3c7100}from'@univer-cli/config';import{Command as _0x42f181}from'commander';function n(_0x51ee6b){const _0x16847d=_0x3177;let _0x73f193=new _0x42f181(_0x16847d(0x19a))['description'](_0x16847d(0x1a6))['action'](()=>_0x73f193[_0x16847d(0x187)]());return _0x73f193[_0x16847d(0x198)]('path')[_0x16847d(0x19d)](_0x16847d(0x1a4))[_0x16847d(0x182)](_0x16847d(0x17a),_0x16847d(0x18b))[_0x16847d(0x18d)](_0x3bc384=>{const _0x51fc29=_0x16847d;a(_0x73f193,_0x3bc384,{'path':_0x51ee6b['config'][_0x51fc29(0x191)]},_0x51ee6b[_0x51fc29(0x19a)][_0x51fc29(0x191)]);}),_0x73f193[_0x16847d(0x198)](_0x16847d(0x194))[_0x16847d(0x19d)](_0x16847d(0x197))[_0x16847d(0x182)](_0x16847d(0x17a),_0x16847d(0x18b))[_0x16847d(0x18d)](async _0xbe22ef=>{const _0x339ac8=_0x16847d;let _0xcf9620=await r(_0x73f193,async()=>await _0x51ee6b[_0x339ac8(0x19a)][_0x339ac8(0x194)]());a(_0x73f193,_0xbe22ef,{'entries':_0xcf9620},o(_0xcf9620));}),_0x73f193[_0x16847d(0x198)](_0x16847d(0x18e))[_0x16847d(0x19d)](_0x16847d(0x1a5))[_0x16847d(0x189)]('<key>',_0x16847d(0x179))['option']('--json',_0x16847d(0x18b))[_0x16847d(0x18d)](async(_0x1ee985,_0x2992ba)=>{const _0x3781a3=_0x16847d;let _0x4834b=await r(_0x73f193,async()=>await _0x51ee6b[_0x3781a3(0x19a)][_0x3781a3(0x18e)]({'key':_0x1ee985}));i(_0x73f193,_0x2992ba,_0x4834b);}),_0x73f193[_0x16847d(0x198)](_0x16847d(0x196))[_0x16847d(0x19d)](_0x16847d(0x183))[_0x16847d(0x189)](_0x16847d(0x1a1),'registered\x20config\x20key')['argument'](_0x16847d(0x19b),'config\x20value\x20as\x20text')['option']('--json',_0x16847d(0x18b))[_0x16847d(0x18d)](async(_0x22f84e,_0x434248,_0x4ca844)=>{const _0x1aa04f=_0x16847d;let _0x58b4f7=await r(_0x73f193,async()=>await _0x51ee6b['config'][_0x1aa04f(0x19e)]({'key':_0x22f84e,'text':_0x434248}));i(_0x73f193,_0x4ca844,_0x58b4f7);}),_0x73f193[_0x16847d(0x198)](_0x16847d(0x185))['description'](_0x16847d(0x17e))['argument']('<key>','registered\x20config\x20key')[_0x16847d(0x182)](_0x16847d(0x17a),'write\x20structured\x20JSON')[_0x16847d(0x18d)](async(_0x1010f2,_0x2811b9)=>{let _0x5025b5=await r(_0x73f193,async()=>await _0x51ee6b['config']['unset']({'key':_0x1010f2}));i(_0x73f193,_0x2811b9,_0x5025b5);}),_0x73f193;}async function r(_0xec53c,_0x5536f1){const _0x43f68a=_0x3177;try{return await _0x5536f1();}catch(_0x540674){throw _0x540674 instanceof _0x3c7100&&_0xec53c[_0x43f68a(0x18c)](_0x540674['code']+':\x20'+_0x540674[_0x43f68a(0x1a3)],{'code':'config.failed','exitCode':0x1}),_0x540674;}}function i(_0x44d388,_0x1ca8d9,_0x416d7b){a(_0x44d388,_0x1ca8d9,{'entry':_0x416d7b},s(_0x416d7b));}function a(_0x5f0e44,_0x12d748,_0x3c952d,_0x4369d){const _0x467302=_0x3177;let _0x207c8e=_0x12d748[_0x467302(0x17d)]===!0x0?JSON[_0x467302(0x1a7)](_0x3c952d,null,0x2):_0x4369d;_0x5f0e44[_0x467302(0x184)]()['writeOut']?.(_0x207c8e+'\x0a');}function _0x3acf(){const _0x30d386=['<key>','33pGsPGE','message','Show\x20the\x20config\x20file\x20path','Get\x20a\x20registered\x20config\x20entry','Inspect\x20and\x20update\x20application\x20config','stringify','registered\x20config\x20key','--json',')\x0a\x20\x20','1684GmLDSG','json','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','396162IuwyqC','source','2195070wPomPV','option','Set\x20a\x20registered\x20config\x20entry','configureOutput','unset','map','outputHelp','5472880dPnzxG','argument','key','write\x20structured\x20JSON','error','action','get','1909772TVgNnM','2298gEhMsm','path','3489oimRmg','4885jZVswS','list','value','set','List\x20registered\x20config\x20entries','command','<unset>','config','<value>','152HwuUdK','description','setFromText','926813fvMdgk','\x20=\x20'];_0x3acf=function(){return _0x30d386;};return _0x3acf();}function o(_0x5ab7b6){const _0x25ffad=_0x3177;return _0x5ab7b6[_0x25ffad(0x186)](s)['join']('\x0a');}function _0x3177(_0x344aad,_0x4bc77b){_0x344aad=_0x344aad-0x179;const _0x3acf82=_0x3acf();let _0x3177e9=_0x3acf82[_0x344aad];return _0x3177e9;}function s(_0x2c15e9){const _0x1e4f06=_0x3177;let _0x39d138=_0x2c15e9['source']===_0x1e4f06(0x185)?_0x1e4f06(0x199):c(_0x2c15e9[_0x1e4f06(0x195)]);return _0x2c15e9[_0x1e4f06(0x18a)]+_0x1e4f06(0x1a0)+_0x39d138+'\x20('+_0x2c15e9[_0x1e4f06(0x180)]+_0x1e4f06(0x17b)+_0x2c15e9[_0x1e4f06(0x19d)];}function c(_0x4595c2){const _0x21f170=_0x3177;return typeof _0x4595c2=='string'?_0x4595c2:JSON[_0x21f170(0x1a7)](_0x4595c2);}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.3.1",
4
+ "version": "1.4.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.3.1"
21
+ "@univer-cli/config": "1.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"