@univer-cli/config-command 1.0.0 → 1.0.2
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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x841253,_0x4954a1){const _0x36cbe8=_0x45a0,_0x28644b=_0x841253();while(!![]){try{const _0x35c8f4=parseInt(_0x36cbe8(0xed))/0x1*(-parseInt(_0x36cbe8(0xd1))/0x2)+-parseInt(_0x36cbe8(0xe6))/0x3*(parseInt(_0x36cbe8(0xe5))/0x4)+parseInt(_0x36cbe8(0xdb))/0x5+-parseInt(_0x36cbe8(0xea))/0x6+-parseInt(_0x36cbe8(0xef))/0x7+-parseInt(_0x36cbe8(0xd3))/0x8+-parseInt(_0x36cbe8(0xee))/0x9*(-parseInt(_0x36cbe8(0xdf))/0xa);if(_0x35c8f4===_0x4954a1)break;else _0x28644b['push'](_0x28644b['shift']());}catch(_0x3c93cf){_0x28644b['push'](_0x28644b['shift']());}}}(_0x2a9d,0xbc689));import{ConfigError as _0xc9050b}from'@univer-cli/config';import{Command as _0x1799b1}from'commander';function n(_0x2cbde5){const _0x8cdaf8=_0x45a0;let _0x257e70=new _0x1799b1(_0x8cdaf8(0xcb))[_0x8cdaf8(0xd9)]('Inspect\x20and\x20update\x20application\x20config')[_0x8cdaf8(0xeb)](()=>_0x257e70[_0x8cdaf8(0xe0)]());return _0x257e70[_0x8cdaf8(0xc9)](_0x8cdaf8(0xc5))[_0x8cdaf8(0xd9)](_0x8cdaf8(0xe3))[_0x8cdaf8(0xdd)](_0x8cdaf8(0xcd),_0x8cdaf8(0xca))['action'](_0x4fdc01=>{const _0x2ca338=_0x8cdaf8;a(_0x257e70,_0x4fdc01,{'path':_0x2cbde5[_0x2ca338(0xcb)]['path']},_0x2cbde5[_0x2ca338(0xcb)][_0x2ca338(0xc5)]);}),_0x257e70[_0x8cdaf8(0xc9)](_0x8cdaf8(0xd8))[_0x8cdaf8(0xd9)]('List\x20registered\x20config\x20entries')['option']('--json',_0x8cdaf8(0xca))['action'](async _0x1843f1=>{let _0x1ad81e=await r(_0x257e70,async()=>await _0x2cbde5['config']['list']());a(_0x257e70,_0x1843f1,{'entries':_0x1ad81e},o(_0x1ad81e));}),_0x257e70[_0x8cdaf8(0xc9)](_0x8cdaf8(0xc6))['description'](_0x8cdaf8(0xd0))[_0x8cdaf8(0xc8)](_0x8cdaf8(0xd5),_0x8cdaf8(0xda))[_0x8cdaf8(0xdd)]('--json',_0x8cdaf8(0xca))[_0x8cdaf8(0xeb)](async(_0x5137f5,_0x11f4ad)=>{const _0x392bcb=_0x8cdaf8;let _0x136389=await r(_0x257e70,async()=>await _0x2cbde5[_0x392bcb(0xcb)][_0x392bcb(0xc6)]({'key':_0x5137f5}));i(_0x257e70,_0x11f4ad,_0x136389);}),_0x257e70[_0x8cdaf8(0xc9)](_0x8cdaf8(0xde))['description']('Set\x20a\x20registered\x20config\x20entry')['argument']('<key>','registered\x20config\x20key')[_0x8cdaf8(0xc8)](_0x8cdaf8(0xe8),'config\x20value\x20as\x20text')[_0x8cdaf8(0xdd)]('--json',_0x8cdaf8(0xca))['action'](async(_0x4e2521,_0x40dd8b,_0x274196)=>{const _0x3ce713=_0x8cdaf8;let _0x2b002c=await r(_0x257e70,async()=>await _0x2cbde5[_0x3ce713(0xcb)][_0x3ce713(0xdc)]({'key':_0x4e2521,'text':_0x40dd8b}));i(_0x257e70,_0x274196,_0x2b002c);}),_0x257e70['command'](_0x8cdaf8(0xe4))[_0x8cdaf8(0xd9)]('Remove\x20the\x20explicit\x20value\x20for\x20a\x20registered\x20config\x20entry')[_0x8cdaf8(0xc8)](_0x8cdaf8(0xd5),_0x8cdaf8(0xda))[_0x8cdaf8(0xdd)]('--json',_0x8cdaf8(0xca))[_0x8cdaf8(0xeb)](async(_0x238153,_0x2209c7)=>{const _0x1b477f=_0x8cdaf8;let _0x18bf04=await r(_0x257e70,async()=>await _0x2cbde5[_0x1b477f(0xcb)][_0x1b477f(0xe4)]({'key':_0x238153}));i(_0x257e70,_0x2209c7,_0x18bf04);}),_0x257e70;}async function r(_0x111b28,_0x4f915d){const _0x6c219a=_0x45a0;try{return await _0x4f915d();}catch(_0x33a1d2){throw _0x33a1d2 instanceof _0xc9050b&&_0x111b28[_0x6c219a(0xcf)](_0x33a1d2[_0x6c219a(0xd4)]+':\x20'+_0x33a1d2[_0x6c219a(0xd6)],{'code':'config.failed','exitCode':0x1}),_0x33a1d2;}}function i(_0x242603,_0x5be269,_0x23790c){a(_0x242603,_0x5be269,{'entry':_0x23790c},s(_0x23790c));}function _0x45a0(_0x4026b0,_0x51133f){_0x4026b0=_0x4026b0-0xc5;const _0x2a9d5b=_0x2a9d();let _0x2715d8=_0x2a9d5b[_0x4026b0];return _0x2715d8;}function _0x2a9d(){const _0x4e527a=['description','registered\x20config\x20key','6647570KnpaDh','setFromText','option','set','10vgISWC','outputHelp','value','stringify','Show\x20the\x20config\x20file\x20path','unset','2425172BtINgX','3lZLqtV','map','<value>',')\x0a\x20\x20','1960842nJTnZI','action','<unset>','1ySzlBr','26322201hVcBpV','4158392YJBTJl','path','get','writeOut','argument','command','write\x20structured\x20JSON','config','source','--json','string','error','Get\x20a\x20registered\x20config\x20entry','2285126fOqHld','join','6502104NNDWWK','code','<key>','message','key','list'];_0x2a9d=function(){return _0x4e527a;};return _0x2a9d();}function a(_0x5c1e51,_0x33194e,_0x25f2a9,_0x260f64){const _0x5e4d5b=_0x45a0;let _0x5b4faa=_0x33194e['json']===!0x0?JSON[_0x5e4d5b(0xe2)](_0x25f2a9,null,0x2):_0x260f64;_0x5c1e51['configureOutput']()[_0x5e4d5b(0xc7)]?.(_0x5b4faa+'\x0a');}function o(_0x22aec8){const _0x14e13d=_0x45a0;return _0x22aec8[_0x14e13d(0xe7)](s)[_0x14e13d(0xd2)]('\x0a');}function s(_0x4dff94){const _0x51810a=_0x45a0;let _0x1d662a=_0x4dff94['source']===_0x51810a(0xe4)?_0x51810a(0xec):c(_0x4dff94[_0x51810a(0xe1)]);return _0x4dff94[_0x51810a(0xd7)]+'\x20=\x20'+_0x1d662a+'\x20('+_0x4dff94[_0x51810a(0xcc)]+_0x51810a(0xe9)+_0x4dff94['description'];}function c(_0x42cc30){const _0x4e436f=_0x45a0;return typeof _0x42cc30==_0x4e436f(0xce)?_0x42cc30:JSON[_0x4e436f(0xe2)](_0x42cc30);}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.
|
|
4
|
+
"version": "1.0.2",
|
|
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.
|
|
21
|
+
"@univer-cli/config": "1.0.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|