@univer-cli/config-command 1.0.0-beta.2 → 1.0.0-rc.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(_0x412f2a,_0x4e2b67){const _0xd17f43=_0x331e,_0x146090=_0x412f2a();while(!![]){try{const _0x44a01=parseInt(_0xd17f43(0x20f))/0x1+parseInt(_0xd17f43(0x1fd))/0x2+parseInt(_0xd17f43(0x20b))/0x3*(-parseInt(_0xd17f43(0x200))/0x4)+-parseInt(_0xd17f43(0x206))/0x5+parseInt(_0xd17f43(0x1ff))/0x6*(parseInt(_0xd17f43(0x205))/0x7)+parseInt(_0xd17f43(0x1fc))/0x8+-parseInt(_0xd17f43(0x21c))/0x9*(parseInt(_0xd17f43(0x216))/0xa);if(_0x44a01===_0x4e2b67)break;else _0x146090['push'](_0x146090['shift']());}catch(_0x46c713){_0x146090['push'](_0x146090['shift']());}}}(_0x12a8,0x7b536));import{ConfigError as _0xb974c2}from'@univer-cli/config';import{Command as _0x28bf41}from'commander';function n(_0x4d5565){const _0x1743ba=_0x331e;let _0x94c1dc=new _0x28bf41(_0x1743ba(0x21b))['description'](_0x1743ba(0x1f2))[_0x1743ba(0x218)](()=>_0x94c1dc['outputHelp']());return _0x94c1dc[_0x1743ba(0x21a)](_0x1743ba(0x209))[_0x1743ba(0x1fe)]('Show\x20the\x20config\x20file\x20path')[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))['action'](_0x5f4181=>{const _0x228f3c=_0x1743ba;a(_0x94c1dc,_0x5f4181,{'path':_0x4d5565[_0x228f3c(0x21b)][_0x228f3c(0x209)]},_0x4d5565[_0x228f3c(0x21b)][_0x228f3c(0x209)]);}),_0x94c1dc[_0x1743ba(0x21a)]('list')[_0x1743ba(0x1fe)](_0x1743ba(0x20e))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async _0x30d105=>{const _0x201a24=_0x1743ba;let _0xd5a08e=await r(_0x94c1dc,async()=>await _0x4d5565[_0x201a24(0x21b)][_0x201a24(0x210)]());a(_0x94c1dc,_0x30d105,{'entries':_0xd5a08e},o(_0xd5a08e));}),_0x94c1dc['command'](_0x1743ba(0x215))[_0x1743ba(0x1fe)](_0x1743ba(0x1f1))[_0x1743ba(0x20d)]('<key>',_0x1743ba(0x1f8))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0xde8e0e,_0x236bdf)=>{const _0x506901=_0x1743ba;let _0x47f22f=await r(_0x94c1dc,async()=>await _0x4d5565['config'][_0x506901(0x215)]({'key':_0xde8e0e}));i(_0x94c1dc,_0x236bdf,_0x47f22f);}),_0x94c1dc[_0x1743ba(0x21a)](_0x1743ba(0x1f3))['description'](_0x1743ba(0x1fa))[_0x1743ba(0x20d)](_0x1743ba(0x1fb),'registered\x20config\x20key')['argument'](_0x1743ba(0x211),'config\x20value\x20as\x20text')['option'](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0x4ebb91,_0x4fc190,_0x4cd6cd)=>{const _0x163716=_0x1743ba;let _0x2122bb=await r(_0x94c1dc,async()=>await _0x4d5565[_0x163716(0x21b)][_0x163716(0x1f7)]({'key':_0x4ebb91,'text':_0x4fc190}));i(_0x94c1dc,_0x4cd6cd,_0x2122bb);}),_0x94c1dc['command'](_0x1743ba(0x212))[_0x1743ba(0x1fe)](_0x1743ba(0x1f4))[_0x1743ba(0x20d)](_0x1743ba(0x1fb),_0x1743ba(0x1f8))[_0x1743ba(0x204)](_0x1743ba(0x203),_0x1743ba(0x208))[_0x1743ba(0x218)](async(_0x14f92d,_0x31dc20)=>{const _0x30cc86=_0x1743ba;let _0x5a9bee=await r(_0x94c1dc,async()=>await _0x4d5565['config'][_0x30cc86(0x212)]({'key':_0x14f92d}));i(_0x94c1dc,_0x31dc20,_0x5a9bee);}),_0x94c1dc;}async function r(_0x210870,_0x5276a5){const _0x1bb2ef=_0x331e;try{return await _0x5276a5();}catch(_0xc7155d){throw _0xc7155d instanceof _0xb974c2&&_0x210870[_0x1bb2ef(0x213)](_0xc7155d[_0x1bb2ef(0x201)]+':\x20'+_0xc7155d[_0x1bb2ef(0x1f5)],{'code':_0x1bb2ef(0x217),'exitCode':0x1}),_0xc7155d;}}function i(_0x44f0d8,_0x564a9e,_0x583833){a(_0x44f0d8,_0x564a9e,{'entry':_0x583833},s(_0x583833));}function a(_0x86277,_0x4f1871,_0x513c70,_0x3806e0){const _0x3aaa44=_0x331e;let _0x44be55=_0x4f1871[_0x3aaa44(0x214)]===!0x0?JSON[_0x3aaa44(0x207)](_0x513c70,null,0x2):_0x3806e0;_0x86277['configureOutput']()[_0x3aaa44(0x202)]?.(_0x44be55+'\x0a');}function o(_0xc7a2f){const _0xb61f35=_0x331e;return _0xc7a2f['map'](s)[_0xb61f35(0x20a)]('\x0a');}function _0x12a8(){const _0x3054c1=['Set\x20a\x20registered\x20config\x20entry','<key>','3989560UiktnZ','989890uYqdbk','description','54nCqpOr','15536iBdmLO','code','writeOut','--json','option','281939pXEjvP','1943920uehpgg','stringify','write\x20structured\x20JSON','path','join','366EQODdw','value','argument','List\x20registered\x20config\x20entries','465169qbFqoJ','list','<value>','unset','error','json','get','360frVczD','config.failed','action','\x20=\x20','command','config','113382bqNQLm','Get\x20a\x20registered\x20config\x20entry','Inspect\x20and\x20update\x20application\x20config','set','Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry','message',')\x0a\x20\x20','setFromText','registered\x20config\x20key','source'];_0x12a8=function(){return _0x3054c1;};return _0x12a8();}function s(_0x5aab11){const _0x2b2e12=_0x331e;let _0x5564d5=_0x5aab11[_0x2b2e12(0x1f9)]===_0x2b2e12(0x212)?'<unset>':c(_0x5aab11[_0x2b2e12(0x20c)]);return _0x5aab11['key']+_0x2b2e12(0x219)+_0x5564d5+'\x20('+_0x5aab11[_0x2b2e12(0x1f9)]+_0x2b2e12(0x1f6)+_0x5aab11['description'];}function _0x331e(_0x42bf84,_0xbad0f2){_0x42bf84=_0x42bf84-0x1f1;const _0x12a8c4=_0x12a8();let _0x331eca=_0x12a8c4[_0x42bf84];return _0x331eca;}function c(_0x2d819b){return typeof _0x2d819b=='string'?_0x2d819b:JSON['stringify'](_0x2d819b);}export{n as createConfigCommand};
1
+ (function(_0x28d13f,_0x56598e){const _0x3e2e32=_0x9362,_0x3c9091=_0x28d13f();while(!![]){try{const _0x47cd1d=parseInt(_0x3e2e32(0x106))/0x1+-parseInt(_0x3e2e32(0x118))/0x2*(parseInt(_0x3e2e32(0x113))/0x3)+parseInt(_0x3e2e32(0x127))/0x4+parseInt(_0x3e2e32(0x10a))/0x5*(parseInt(_0x3e2e32(0x10e))/0x6)+-parseInt(_0x3e2e32(0x121))/0x7*(parseInt(_0x3e2e32(0x102))/0x8)+-parseInt(_0x3e2e32(0x12b))/0x9*(-parseInt(_0x3e2e32(0x11f))/0xa)+-parseInt(_0x3e2e32(0x122))/0xb;if(_0x47cd1d===_0x56598e)break;else _0x3c9091['push'](_0x3c9091['shift']());}catch(_0x5c1161){_0x3c9091['push'](_0x3c9091['shift']());}}}(_0x43e9,0x22ae8));import{ConfigError as _0xcea19a}from'@univer-cli/config';import{Command as _0x2dc9b4}from'commander';function n(_0x26aa43){const _0x5ebafd=_0x9362;let _0x7399d6=new _0x2dc9b4(_0x5ebafd(0x125))[_0x5ebafd(0x10d)](_0x5ebafd(0x105))['action'](()=>_0x7399d6['outputHelp']());return _0x7399d6[_0x5ebafd(0xff)]('path')[_0x5ebafd(0x10d)](_0x5ebafd(0x124))['option'](_0x5ebafd(0x117),_0x5ebafd(0x111))[_0x5ebafd(0x103)](_0x4d4e73=>{const _0x5e0708=_0x5ebafd;a(_0x7399d6,_0x4d4e73,{'path':_0x26aa43[_0x5e0708(0x125)][_0x5e0708(0x11c)]},_0x26aa43[_0x5e0708(0x125)][_0x5e0708(0x11c)]);}),_0x7399d6[_0x5ebafd(0xff)](_0x5ebafd(0x100))[_0x5ebafd(0x10d)](_0x5ebafd(0x10c))[_0x5ebafd(0x116)]('--json','write\x20structured\x20JSON')[_0x5ebafd(0x103)](async _0x568115=>{const _0x187499=_0x5ebafd;let _0x42a522=await r(_0x7399d6,async()=>await _0x26aa43[_0x187499(0x125)]['list']());a(_0x7399d6,_0x568115,{'entries':_0x42a522},o(_0x42a522));}),_0x7399d6[_0x5ebafd(0xff)](_0x5ebafd(0x104))[_0x5ebafd(0x10d)](_0x5ebafd(0x129))['argument'](_0x5ebafd(0x109),_0x5ebafd(0x11e))[_0x5ebafd(0x116)](_0x5ebafd(0x117),_0x5ebafd(0x111))[_0x5ebafd(0x103)](async(_0x1df6aa,_0x2b3b64)=>{const _0x45df3e=_0x5ebafd;let _0x246706=await r(_0x7399d6,async()=>await _0x26aa43[_0x45df3e(0x125)][_0x45df3e(0x104)]({'key':_0x1df6aa}));i(_0x7399d6,_0x2b3b64,_0x246706);}),_0x7399d6[_0x5ebafd(0xff)](_0x5ebafd(0x115))['description'](_0x5ebafd(0x114))[_0x5ebafd(0x12a)](_0x5ebafd(0x109),_0x5ebafd(0x11e))['argument'](_0x5ebafd(0x11b),_0x5ebafd(0x119))[_0x5ebafd(0x116)](_0x5ebafd(0x117),_0x5ebafd(0x111))[_0x5ebafd(0x103)](async(_0x10b6e7,_0x28afd0,_0x447ccc)=>{const _0x3db06a=_0x5ebafd;let _0x284c86=await r(_0x7399d6,async()=>await _0x26aa43[_0x3db06a(0x125)][_0x3db06a(0x112)]({'key':_0x10b6e7,'text':_0x28afd0}));i(_0x7399d6,_0x447ccc,_0x284c86);}),_0x7399d6[_0x5ebafd(0xff)]('unset')[_0x5ebafd(0x10d)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x5ebafd(0x12a)](_0x5ebafd(0x109),_0x5ebafd(0x11e))[_0x5ebafd(0x116)]('--json',_0x5ebafd(0x111))[_0x5ebafd(0x103)](async(_0x3c4dab,_0x3df782)=>{const _0x2373d0=_0x5ebafd;let _0x2a21fe=await r(_0x7399d6,async()=>await _0x26aa43[_0x2373d0(0x125)]['unset']({'key':_0x3c4dab}));i(_0x7399d6,_0x3df782,_0x2a21fe);}),_0x7399d6;}async function r(_0x25cd4a,_0x24bd52){const _0xec8d4b=_0x9362;try{return await _0x24bd52();}catch(_0x1232fe){throw _0x1232fe instanceof _0xcea19a&&_0x25cd4a[_0xec8d4b(0x10b)](_0x1232fe[_0xec8d4b(0x120)]+':\x20'+_0x1232fe['message'],{'code':_0xec8d4b(0x107),'exitCode':0x1}),_0x1232fe;}}function i(_0x4c8d4c,_0x1addf8,_0x3a2895){a(_0x4c8d4c,_0x1addf8,{'entry':_0x3a2895},s(_0x3a2895));}function _0x43e9(){const _0x550648=['get','Inspect\x20and\x20update\x20application\x20config','274249nouxDw','config.failed','<unset>','<key>','815wbkHYp','error','List\x20registered\x20config\x20entries','description','9318znNVpD','configureOutput','stringify','write\x20structured\x20JSON','setFromText','681831itOpQZ','Set\x20a\x20registered\x20config\x20entry','set','option','--json','2rnlGmk','config\x20value\x20as\x20text','unset','<value>','path','json','registered\x20config\x20key','1232480BdQdIe','code','70483NtXWon','4334836bOOcaL','writeOut','Show\x20the\x20config\x20file\x20path','config','key','884448GFPHyJ','source','Get\x20a\x20registered\x20config\x20entry','argument','18pfAxOH','command','list',')\x0a\x20\x20','184YIJuyE','action'];_0x43e9=function(){return _0x550648;};return _0x43e9();}function a(_0x329cee,_0x15b10c,_0x96bece,_0x37aab2){const _0x311831=_0x9362;let _0x4b88d8=_0x15b10c[_0x311831(0x11d)]===!0x0?JSON[_0x311831(0x110)](_0x96bece,null,0x2):_0x37aab2;_0x329cee[_0x311831(0x10f)]()[_0x311831(0x123)]?.(_0x4b88d8+'\x0a');}function o(_0x12d123){return _0x12d123['map'](s)['join']('\x0a');}function _0x9362(_0x4f0ea0,_0x14f5fe){_0x4f0ea0=_0x4f0ea0-0xff;const _0x43e983=_0x43e9();let _0x9362d2=_0x43e983[_0x4f0ea0];return _0x9362d2;}function s(_0x500747){const _0x56499e=_0x9362;let _0xf36369=_0x500747['source']===_0x56499e(0x11a)?_0x56499e(0x108):c(_0x500747['value']);return _0x500747[_0x56499e(0x126)]+'\x20=\x20'+_0xf36369+'\x20('+_0x500747[_0x56499e(0x128)]+_0x56499e(0x101)+_0x500747[_0x56499e(0x10d)];}function c(_0x24f0f6){const _0xf7a2ba=_0x9362;return typeof _0x24f0f6=='string'?_0x24f0f6:JSON[_0xf7a2ba(0x110)](_0x24f0f6);}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.0-beta.2",
4
+ "version": "1.0.0-rc.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.0-beta.2"
21
+ "@univer-cli/config": "1.0.0-rc.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"