@univer-cli/api-reference-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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x33493a,_0x142e0b){const _0x4606d1=_0x5595,_0x48b64a=_0x33493a();while(!![]){try{const _0x38c23e=-parseInt(_0x4606d1(0x1bb))/0x1+parseInt(_0x4606d1(0x1b5))/0x2+-parseInt(_0x4606d1(0x203))/0x3+-parseInt(_0x4606d1(0x1bd))/0x4*(-parseInt(_0x4606d1(0x1cd))/0x5)+parseInt(_0x4606d1(0x19d))/0x6*(parseInt(_0x4606d1(0x1f7))/0x7)+-parseInt(_0x4606d1(0x1d1))/0x8*(parseInt(_0x4606d1(0x21f))/0x9)+-parseInt(_0x4606d1(0x19c))/0xa*(-parseInt(_0x4606d1(0x1dd))/0xb);if(_0x38c23e===_0x142e0b)break;else _0x48b64a['push'](_0x48b64a['shift']());}catch(_0x5685dd){_0x48b64a['push'](_0x48b64a['shift']());}}}(_0x4181,0xbd94b));import{API_REFERENCE_UNITS as _0x3c027e}from'@univer-cli/api-reference';import{Command as _0x298e48,Option as _0x4929cb}from'commander';var r=0x48,i=0x5a;function a(_0x503b26){const _0xf5ec5f=_0x5595;return(_0x503b26[_0xf5ec5f(0x202)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x503b26)['trim']();}function _0x4181(){const _0xb680e9=['\x20(filtered\x20by\x20--unit\x20','values','startsWith','symbols','35615oTXfHM','find','totalMatches','argument','11092648cFnjEp','\x0adeclare\x20enum\x20','trimStart',';\x20runtime\x20aliases:\x20','appendix','members','writeOut','\x20from\x20','```','documentation','text','value','3082343MubPzf','term',',\x0a}','target','readonly','//\x20[found]\x20','interface\x20','optional','\x0a\x20\x20List\x20all:\x20api\x20show\x20','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','declaredBy','kind','\x20supported\x20members','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','map','reduce','number',',\x20drop\x20--unit','choices','Symbol','//\x20batch:\x20','push','pop','found','show','status','174510TPntfD','declaration','relationOwner','action','\x20\x20—\x20',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','declare\x20class\x20','//\x20[not-found]\x20','\x20\x20/**\x20','alias','groups','match','741432RZcnxq','api','[symbols...]','length','declarationKind','class','reference','\x0a\x20\x20If\x20unsure,\x20api\x20find\x20<keyword>\x20to\x20search\x20indexed\x20API\x20symbols,\x20or\x20api\x20show\x20<class\x20alias:\x20range/slide/document/presentation/api>\x20to\x20browse\x20a\x20whole\x20class.','unit','split','\x20\x20[','//\x20directly\x20referenced\x20types','signatures','inherited','owner','No\x20API\x20matches\x20\x22','summary','//\x20','error','<symbols...>','declare\x20enum\x20','extends','*\x5c/','query','enum','/**','\x20has\x20no\x20','every','9kjobFc','description','\x20found,\x20','readonly\x20','outputHelp','aliases','20PplEhH','144hGLliC','configureOutput','addOption','stringify','relation','//\x20package:\x20','flatMap','trim','<terms...>','Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values','signature','unknown','tags','includes','\x0a\x0a//\x20batch:\x20','replaceAll','filter','member','\x20*/','type\x20','name','\x20══\x0a','one\x20or\x20more\x20exact\x20API\x20symbols','not-found','2006106gCGcFw','api.reference.not-found','join','own','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','//\x20inherited\x20declaration\x20from\x20','371252dxnIXW','example','348ZMkmhp','\x0a\x20\x20Similar\x20','\x20=\x20','--unit\x20<unit>','entries','//\x20full\x20member\x20docs:\x20api\x20show\x20','packageName','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','type','matches','subject','command'];_0x4181=function(){return _0xb680e9;};return _0x4181();}function o(_0xc5a3d3,_0x570f0e){return _0xc5a3d3['length']>_0x570f0e?_0xc5a3d3['slice'](0x0,_0x570f0e-0x1)+'…':_0xc5a3d3;}function s(_0x42e3be){const _0x1c519b=_0x5595;let _0x16b9a5=_0x42e3be[_0x1c519b(0x213)]===''?'':_0x1c519b(0x1fb)+a(_0x42e3be[_0x1c519b(0x213)]);return'['+_0x42e3be[_0x1c519b(0x1e8)]+']\x20'+o(_0x42e3be['signature'],r)+o(_0x16b9a5,i)+_0x1c519b(0x20d)+_0x42e3be[_0x1c519b(0x1c3)]+']';}function c(_0x3e392f,_0x250110){const _0x649a1=_0x5595;if(_0x3e392f[_0x649a1(0x1c6)]['length']===0x0){let _0x24bccb=_0x250110===void 0x0?'':_0x649a1(0x1c9)+_0x250110+')';return _0x649a1(0x212)+_0x3e392f[_0x649a1(0x1de)]+'\x22'+_0x24bccb+'.\x20Try\x20a\x20shorter\x20substring'+(_0x250110===void 0x0?'':_0x649a1(0x1ee))+_0x649a1(0x1fc);}let _0x48a122=_0x3e392f['matches'][_0x649a1(0x1eb)](s),_0x2d9dda=_0x3e392f[_0x649a1(0x1cf)]-_0x3e392f['matches']['length'];return _0x2d9dda>0x0&&_0x48a122[_0x649a1(0x1f2)]('…\x20'+_0x2d9dda+_0x649a1(0x1e6)),_0x48a122[_0x649a1(0x1b7)]('\x0a');}function l(_0x350801,_0x198368){const _0x3db598=_0x5595;return _0x350801[_0x3db598(0x1eb)](_0x1e98b7=>{const _0x3b8d3a=_0x3db598;let _0x1c3d9a=c(_0x1e98b7,_0x198368);return _0x350801['length']>0x1?'══\x20'+_0x1e98b7[_0x3b8d3a(0x1de)]+_0x3b8d3a(0x1b2)+_0x1c3d9a:_0x1c3d9a;})[_0x3db598(0x1b7)]('\x0a\x0a');}function u(_0x498418){const _0x5aff20=_0x5595;return _0x498418[_0x5aff20(0x20c)](/\n\s*\n/u,0x1)[0x0]?.[_0x5aff20(0x1a4)]()??'';}function d(_0xef4420){const _0x563f18=_0x5595;return _0xef4420['documentation']===void 0x0?{'description':_0xef4420[_0x563f18(0x213)],'tags':_0xef4420['example']===''?[]:[{'name':_0x563f18(0x1bc),'text':_0xef4420[_0x563f18(0x1bc)]}]}:_0xef4420[_0x563f18(0x1da)];}function f(_0x4ae9c6){const _0x57cc4f=_0x5595;return _0x4ae9c6[_0x57cc4f(0x1da)]??{'description':_0x4ae9c6['summary'],'tags':[]};}function p(_0x27af21){const _0x43d0c9=_0x5595;let _0x3720f7=_0x27af21[_0x43d0c9(0x1c5)]===void 0x0?'':'\x20{'+_0x27af21[_0x43d0c9(0x1c5)]+'}',_0x19e5c8=_0x27af21[_0x43d0c9(0x1c7)]===void 0x0?'':'\x20'+_0x27af21[_0x43d0c9(0x1c7)],[_0x54908b='',..._0x5d69f9]=_0x27af21[_0x43d0c9(0x1db)]===''?[]:_0x27af21[_0x43d0c9(0x1db)][_0x43d0c9(0x20c)]('\x0a');return _0x27af21[_0x43d0c9(0x1b1)]==='example'&&_0x54908b[_0x43d0c9(0x1d3)]()[_0x43d0c9(0x1cb)](_0x43d0c9(0x1d9))?['@'+_0x27af21[_0x43d0c9(0x1b1)]+_0x3720f7+_0x19e5c8,_0x54908b,..._0x5d69f9]:['@'+_0x27af21[_0x43d0c9(0x1b1)]+_0x3720f7+_0x19e5c8+(_0x54908b===''?'':'\x20'+_0x54908b),..._0x5d69f9];}function m(_0x3beb3f,_0x3a1068='',_0x835184=!0x1){const _0x37628e=_0x5595;if(_0x3beb3f===void 0x0)return[];let _0x9030dd=_0x835184?u(_0x3beb3f[_0x37628e(0x197)]):_0x3beb3f[_0x37628e(0x197)],_0x34ef46=_0x3beb3f[_0x37628e(0x1a9)]['flatMap'](p),_0x34f777=[..._0x9030dd[_0x37628e(0x20c)]('\x0a'),..._0x835184||_0x34ef46['length']===0x0?[]:['',..._0x34ef46]];for(;_0x34f777['at'](-0x1)==='';)_0x34f777[_0x37628e(0x1f3)]();return _0x34f777[_0x37628e(0x21e)](_0x5ade8a=>_0x5ade8a==='')?[]:[_0x3a1068+_0x37628e(0x21c),..._0x34f777[_0x37628e(0x1eb)](_0x181607=>_0x3a1068+'\x20*'+(_0x181607===''?'':'\x20'+_0x181607)),_0x3a1068+_0x37628e(0x1af)];}function h(_0x4f794f){const _0x5b400c=_0x5595;return''+((_0x4f794f[_0x5b400c(0x1e8)]==='getter'||_0x4f794f[_0x5b400c(0x1e1)])&&!_0x4f794f[_0x5b400c(0x1a7)][_0x5b400c(0x1cb)]('readonly\x20')?_0x5b400c(0x199):'')+_0x4f794f[_0x5b400c(0x1a7)]+';';}function g(_0x24a521){const _0x55c1b4=_0x5595;let _0xadcc3c=_0x24a521['summary']['trim']();return[..._0xadcc3c===''?[]:[_0x55c1b4(0x1ff)+_0xadcc3c[_0x55c1b4(0x1ac)]('*/',_0x55c1b4(0x219))+_0x55c1b4(0x1af)],'\x20\x20'+h(_0x24a521)];}function _(_0x4849fe,_0x3a3bcd,_0x42e5d7,_0xb5d42c){const _0x32059=_0x5595;let _0x3d3263=_0x3a3bcd===_0x32059(0x1b8)?[]:['//\x20'+(_0x3a3bcd===_0x32059(0x210)?'inherited':'composed')+'\x20member\x20projection\x20from\x20'+_0x4849fe],_0x457e0c=_0x3a3bcd===_0x32059(0x1b8)?_0xb5d42c:_0x3a3bcd===_0x32059(0x210)?_0x32059(0x1fd)+_0x4849fe:_0x32059(0x1e3)+_0x4849fe;return[..._0x3d3263,_0x457e0c+'\x20{',..._0x42e5d7[_0x32059(0x1a3)](g),'}'];}function v(_0x38ce41){const _0x41acd0=_0x5595;return typeof _0x38ce41==_0x41acd0(0x1ed)?String(_0x38ce41):JSON[_0x41acd0(0x1a0)](_0x38ce41);}function y(_0x1195a8,_0x4a5765=!0x1){const _0x1c177b=_0x5595;let _0x3bec19=_0x1195a8[_0x1c177b(0x1da)]??(_0x1195a8[_0x1c177b(0x213)]===void 0x0?void 0x0:{'description':_0x1195a8[_0x1c177b(0x213)],'tags':[]}),_0x43ab60=_0x1195a8[_0x1c177b(0x1c5)][_0x1c177b(0x1cb)]('(')&&!_0x1195a8[_0x1c177b(0x1c5)][_0x1c177b(0x1aa)]('=>')?'':':\x20',_0x3d31a4=_0x1195a8['declaration']??''+_0x1195a8[_0x1c177b(0x1b1)]+(_0x1195a8[_0x1c177b(0x1e4)]?'?':'')+_0x43ab60+_0x1195a8[_0x1c177b(0x1c5)];return[...m(_0x3bec19,'\x20\x20',!_0x4a5765),'\x20\x20'+_0x3d31a4+';'];}function b(_0xfa5b42,_0x1b79cd=!0x1){const _0x11a8ad=_0x5595;let _0x2211c7=_0xfa5b42[_0x11a8ad(0x19b)]??[],_0x55d694=[_0x11a8ad(0x1a2)+_0xfa5b42[_0x11a8ad(0x1c3)]+(_0x2211c7[_0x11a8ad(0x206)]===0x0?'':_0x11a8ad(0x1d4)+_0x2211c7[_0x11a8ad(0x1b7)](',\x20')),...m(f(_0xfa5b42))];if(_0xfa5b42[_0x11a8ad(0x1e8)]===_0x11a8ad(0x21b))return _0x55d694[_0x11a8ad(0x1f2)](_0x11a8ad(0x217)+(_0xfa5b42[_0x11a8ad(0x1f8)]??_0xfa5b42[_0x11a8ad(0x1b1)])+'\x20{',...(_0xfa5b42[_0x11a8ad(0x1ca)]??[])[_0x11a8ad(0x1eb)](_0x395261=>'\x20\x20'+_0x395261[_0x11a8ad(0x1b1)]+_0x11a8ad(0x1bf)+v(_0x395261[_0x11a8ad(0x1dc)])+','),'}'),_0x55d694[_0x11a8ad(0x1b7)]('\x0a');if(_0xfa5b42[_0x11a8ad(0x1e8)]===_0x11a8ad(0x200))return _0x55d694[_0x11a8ad(0x1f2)](_0x11a8ad(0x1b0)+(_0xfa5b42['declaration']??_0xfa5b42[_0x11a8ad(0x1b1)]+_0x11a8ad(0x1bf)+(_0xfa5b42['definition']??_0x11a8ad(0x1a8)))+';'),_0x55d694[_0x11a8ad(0x1b7)]('\x0a');let _0x18c2c7=_0xfa5b42[_0x11a8ad(0x218)]===void 0x0?'':'\x20extends\x20'+_0xfa5b42[_0x11a8ad(0x218)];return _0x55d694[_0x11a8ad(0x1f2)]('interface\x20'+(_0xfa5b42[_0x11a8ad(0x1f8)]??''+_0xfa5b42[_0x11a8ad(0x1b1)]+_0x18c2c7)+'\x20{',...(_0xfa5b42[_0x11a8ad(0x1d6)]??[])[_0x11a8ad(0x1a3)](_0x4a2203=>y(_0x4a2203,_0x1b79cd)),...(_0xfa5b42[_0x11a8ad(0x20f)]??[])[_0x11a8ad(0x1eb)](_0x446bc4=>'\x20\x20'+_0x446bc4+';'),'}'),_0x55d694[_0x11a8ad(0x1b7)]('\x0a');}function x(_0x4f942e){const _0x27d3aa=_0x5595;return _0x4f942e[_0x27d3aa(0x206)]===0x0?[]:['',_0x27d3aa(0x20e),..._0x4f942e[_0x27d3aa(0x1a3)]((_0x5e6252,_0x249327)=>[..._0x249327===0x0?[]:[''],b(_0x5e6252)])];}function _0x5595(_0x45c676,_0x75189f){_0x45c676=_0x45c676-0x197;const _0x4181ac=_0x4181();let _0x559566=_0x4181ac[_0x45c676];return _0x559566;}function S(_0x3a0df8){const _0x391386=_0x5595;if(_0x3a0df8['status']===_0x391386(0x1b4))return'';if(_0x3a0df8[_0x391386(0x1e8)]==='class'){let _0x884997=_0x3a0df8[_0x391386(0x201)][_0x391386(0x1ec)]((_0x1f989e,_0x25bbee)=>_0x1f989e+_0x25bbee['members'][_0x391386(0x206)],0x0),_0x1c5fdc=_0x3a0df8[_0x391386(0x201)]['find'](_0x2e2f74=>_0x2e2f74['relation']===_0x391386(0x1b8)),_0x28311c=_0x3a0df8[_0x391386(0x207)]===_0x391386(0x208)?'declare\x20class\x20'+_0x3a0df8[_0x391386(0x1f8)]:_0x391386(0x1b0)+_0x3a0df8[_0x391386(0x1f8)],_0x4e77e4=[_0x391386(0x1a2)+_0x3a0df8['packageName']+';\x20'+_0x884997+_0x391386(0x1e9),...m(_0x3a0df8['documentation'])];_0x3a0df8[_0x391386(0x207)]===_0x391386(0x200)?(_0x4e77e4[_0x391386(0x1f2)](_0x28311c+';'),_0x1c5fdc!==void 0x0&&_0x4e77e4[_0x391386(0x1f2)]('',..._(_0x1c5fdc[_0x391386(0x211)],_0x391386(0x1b8),_0x1c5fdc[_0x391386(0x1d6)],_0x391386(0x1e3)+_0x1c5fdc[_0x391386(0x211)]))):_0x4e77e4['push'](..._(_0x3a0df8['name'],_0x391386(0x1b8),_0x1c5fdc?.[_0x391386(0x1d6)]??[],_0x28311c));for(let _0x7e7837 of _0x3a0df8['groups'][_0x391386(0x1ad)](_0xaca03c=>_0xaca03c['relation']!=='own'))_0x4e77e4[_0x391386(0x1f2)]('',..._(_0x7e7837[_0x391386(0x211)],_0x7e7837['relation'],_0x7e7837[_0x391386(0x1d6)],_0x28311c));return _0x4e77e4[_0x391386(0x1f2)]('',_0x391386(0x1c2)+_0x3a0df8['name']+'.<member>'),_0x4e77e4[_0x391386(0x1b7)]('\x0a');}if(_0x3a0df8[_0x391386(0x1e8)]===_0x391386(0x1ae)){let [_0x5b1bef]=_0x3a0df8[_0x391386(0x1c1)];if(_0x5b1bef===void 0x0)return'';let _0x42e4f9=_0x5b1bef[_0x391386(0x1a1)]===_0x391386(0x1b8)?[]:[_0x391386(0x214)+_0x5b1bef[_0x391386(0x1a1)]+_0x391386(0x1d8)+_0x5b1bef[_0x391386(0x1f9)]];return['//\x20package:\x20'+_0x5b1bef[_0x391386(0x1ae)]['packageName'],..._0x42e4f9,_0x391386(0x1fd)+_0x3a0df8[_0x391386(0x1e0)]+'\x20{',..._0x3a0df8[_0x391386(0x1c1)][_0x391386(0x1a3)](_0x2d4e76=>[...m(d(_0x2d4e76[_0x391386(0x1ae)]),'\x20\x20'),'\x20\x20'+h(_0x2d4e76[_0x391386(0x1ae)])]),'}',...x([...new Map(_0x3a0df8['entries'][_0x391386(0x1a3)](_0x191156=>_0x191156['appendix'])[_0x391386(0x1eb)](_0x36d01b=>[_0x36d01b[_0x391386(0x1b1)],_0x36d01b]))[_0x391386(0x1ca)]()])][_0x391386(0x1b7)]('\x0a');}return _0x3a0df8[_0x391386(0x1e8)]===_0x391386(0x1c5)?[b(_0x3a0df8['type']),..._0x3a0df8[_0x391386(0x210)][_0x391386(0x1a3)](_0x354eff=>['',_0x391386(0x1ba)+_0x354eff['name'],b(_0x354eff)]),...x(_0x3a0df8[_0x391386(0x1d5)])][_0x391386(0x1b7)]('\x0a'):'value'in _0x3a0df8[_0x391386(0x1ae)]?_0x391386(0x1a2)+_0x3a0df8[_0x391386(0x1e7)]['packageName']+_0x391386(0x1d2)+_0x3a0df8[_0x391386(0x1e7)][_0x391386(0x1b1)]+'\x20{\x0a\x20\x20'+_0x3a0df8[_0x391386(0x1ae)]['name']+'\x20=\x20'+v(_0x3a0df8[_0x391386(0x1ae)]['value'])+_0x391386(0x1df):[_0x391386(0x1a2)+_0x3a0df8[_0x391386(0x1e7)][_0x391386(0x1c3)]+(_0x3a0df8[_0x391386(0x1e7)][_0x391386(0x1b1)]===_0x3a0df8['requestedType'][_0x391386(0x1b1)]?'':';\x20inherited\x20from\x20'+_0x3a0df8['declaredBy']['name']),_0x391386(0x1e3)+_0x3a0df8['requestedType'][_0x391386(0x1b1)]+'\x20{',...y(_0x3a0df8[_0x391386(0x1ae)],!0x0),'}',...x(_0x3a0df8[_0x391386(0x1d5)])]['join']('\x0a');}function C(_0x5016f5){const _0x30ff74=_0x5595;let _0x18c2b3=_0x5016f5['suggestions'][_0x30ff74(0x206)]===0x0?'':_0x30ff74(0x1be)+(_0x5016f5['kind']===_0x30ff74(0x1ae)?'methods':_0x30ff74(0x1cc))+':\x20'+_0x5016f5['suggestions'][_0x30ff74(0x1b7)](',\x20');return _0x5016f5[_0x30ff74(0x1e8)]===_0x30ff74(0x1ae)?(_0x5016f5[_0x30ff74(0x211)]??_0x30ff74(0x1f0))+_0x30ff74(0x21d)+(_0x5016f5[_0x30ff74(0x1ae)]??'member')+_0x18c2b3+_0x30ff74(0x1e5)+(_0x5016f5[_0x30ff74(0x211)]??'<Class>'):'Unknown\x20symbol:\x20'+_0x5016f5[_0x30ff74(0x21a)]+_0x18c2b3+_0x30ff74(0x20a);}function w(_0x21f034,_0x455943){const _0x2c74b8=_0x5595;let _0x90e11=_0x21f034[_0x2c74b8(0x19e)](),_0x50e6ff=_0x455943[_0x2c74b8(0x1ad)](_0x4dd03e=>_0x4dd03e[_0x2c74b8(0x1f6)]===_0x2c74b8(0x1f4)),_0x16267d=_0x455943[_0x2c74b8(0x1ad)](_0x474a08=>_0x474a08[_0x2c74b8(0x1f6)]===_0x2c74b8(0x1b4)),_0x2ac170=_0x455943['length']>0x1;_0x50e6ff['length']>0x0&&_0x90e11['writeOut']?.(''+_0x50e6ff['map'](_0x423100=>_0x2ac170?_0x2c74b8(0x1e2)+_0x423100[_0x2c74b8(0x21a)]+'\x0a'+S(_0x423100):S(_0x423100))[_0x2c74b8(0x1b7)]('\x0a\x0a')+(_0x2ac170&&_0x16267d[_0x2c74b8(0x206)]===0x0?_0x2c74b8(0x1ab)+_0x50e6ff['length']+'\x20found,\x200\x20not\x20found':'')+'\x0a'),_0x16267d['length']>0x0&&_0x21f034[_0x2c74b8(0x215)]([..._0x16267d[_0x2c74b8(0x1eb)](_0x2128fa=>_0x2ac170?_0x2c74b8(0x1fe)+_0x2128fa['query']+'\x0a'+C(_0x2128fa):C(_0x2128fa)),..._0x2ac170?[_0x2c74b8(0x1f1)+_0x50e6ff[_0x2c74b8(0x206)]+_0x2c74b8(0x198)+_0x16267d[_0x2c74b8(0x206)]+'\x20not\x20found']:[]][_0x2c74b8(0x1b7)]('\x0a\x0a'),{'code':_0x2c74b8(0x1b6),'exitCode':0x1});}function T(_0x35df0e){const _0x6ff832=_0x5595;let _0x5930fa=new _0x298e48(_0x6ff832(0x204))[_0x6ff832(0x197)]('Offline\x20Univer\x20Facade\x20API\x20reference')[_0x6ff832(0x1d0)](_0x6ff832(0x205),_0x6ff832(0x1ea))[_0x6ff832(0x1fa)](_0x1091d3=>{const _0x359e36=_0x6ff832;if(_0x1091d3[_0x359e36(0x206)]===0x0){_0x5930fa[_0x359e36(0x19a)]();return;}w(_0x5930fa,_0x35df0e[_0x359e36(0x209)][_0x359e36(0x1f5)](_0x1091d3));});return _0x5930fa[_0x6ff832(0x1c8)](_0x6ff832(0x1ce))['description'](_0x6ff832(0x1c4))[_0x6ff832(0x1d0)](_0x6ff832(0x1a5),'one\x20or\x20more\x20terms,\x20searched\x20independently')[_0x6ff832(0x19f)](new _0x4929cb(_0x6ff832(0x1c0),_0x6ff832(0x1b9))[_0x6ff832(0x1ef)](_0x3c027e))['action']((_0x4a6846,_0x292af0)=>{const _0xf84fbb=_0x6ff832;let _0x2e7d2e=_0x35df0e['reference'][_0xf84fbb(0x1ce)]({'terms':_0x4a6846,..._0x292af0[_0xf84fbb(0x20b)]===void 0x0?{}:{'unit':_0x292af0[_0xf84fbb(0x20b)]}});_0x5930fa[_0xf84fbb(0x19e)]()[_0xf84fbb(0x1d7)]?.(l(_0x2e7d2e,_0x292af0[_0xf84fbb(0x20b)])+'\x0a');}),_0x5930fa[_0x6ff832(0x1c8)](_0x6ff832(0x1f5))[_0x6ff832(0x197)](_0x6ff832(0x1a6))[_0x6ff832(0x1d0)](_0x6ff832(0x216),_0x6ff832(0x1b3))['action'](_0x2ba593=>{const _0xf4f81f=_0x6ff832;w(_0x5930fa,_0x35df0e[_0xf4f81f(0x209)][_0xf4f81f(0x1f5)](_0x2ba593));}),_0x5930fa;}export{T as createApiCommand};
|
|
1
|
+
(function(_0x3ee009,_0xb1a6c4){const _0x19855b=_0x275e,_0x17e2bf=_0x3ee009();while(!![]){try{const _0x1bd0b3=-parseInt(_0x19855b(0x1d1))/0x1+parseInt(_0x19855b(0x227))/0x2*(parseInt(_0x19855b(0x1e3))/0x3)+-parseInt(_0x19855b(0x1f4))/0x4*(parseInt(_0x19855b(0x1e4))/0x5)+parseInt(_0x19855b(0x205))/0x6+parseInt(_0x19855b(0x21d))/0x7+-parseInt(_0x19855b(0x21a))/0x8+-parseInt(_0x19855b(0x219))/0x9*(parseInt(_0x19855b(0x1d8))/0xa);if(_0x1bd0b3===_0xb1a6c4)break;else _0x17e2bf['push'](_0x17e2bf['shift']());}catch(_0x74d005){_0x17e2bf['push'](_0x17e2bf['shift']());}}}(_0x32e6,0xf232f));import{API_REFERENCE_UNITS as _0x15eee5}from'@univer-cli/api-reference';function _0x32e6(){const _0x3adf6f=['composed','slice','type\x20','//\x20[not-found]\x20','10PQwmkC','startsWith','methods','appendix','//\x20batch:\x20','requestedType','target','every','unit','status','action','6XIpUYu','4980340WoCOPY','//\x20package:\x20','getter','readonly\x20','\x20from\x20','symbols','push','\x20found,\x200\x20not\x20found','name','groups','readonly','trim','\x20member\x20projection\x20from\x20','argument','addOption','\x20\x20—\x20','4BdsDTI','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','join','optional','//\x20[found]\x20','<Class>','alias','\x20\x20/**\x20','split','reference','text','subject','length','declare\x20enum\x20','type','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','outputHelp','489984zGaVwN','match','Offline\x20Univer\x20Facade\x20API\x20reference','//\x20inherited\x20declaration\x20from\x20','query','//\x20full\x20member\x20docs:\x20api\x20show\x20','Symbol','tags','suggestions','find','inherited','found','enum','signatures','term','kind','/**','\x20\x20[','\x20supported\x20members','No\x20API\x20matches\x20\x22','4351068moSYsg','176664UslQrz','.\x20Try\x20a\x20shorter\x20substring','\x20has\x20no\x20','13070099YzNxsB','api.reference.not-found','entries','\x0a\x20\x20If\x20unsure,\x20api\x20find\x20<keyword>\x20to\x20search\x20indexed\x20API\x20symbols,\x20or\x20api\x20show\x20<class\x20alias:\x20range/slide/document/presentation/api>\x20to\x20browse\x20a\x20whole\x20class.','```','\x20found,\x20','signature','aliases','Unknown\x20symbol:\x20','relation','1072488QpURaa','one\x20or\x20more\x20terms,\x20searched\x20independently','[symbols...]','declarationKind','interface\x20','writeOut','pop','member','matches','values','declaration','class','documentation','own','declaredBy','number','configureOutput','relationOwner','example','includes','\x20extends\x20','description','totalMatches','\x20=\x20','owner','reduce','\x20══\x0a','filter','*\x5c/','summary',';\x20inherited\x20from\x20','declare\x20class\x20',',\x0a}','show','packageName','<terms...>','not-found','definition','\x20*/','\x0a\x20\x20List\x20all:\x20api\x20show\x20','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','flatMap',';\x20runtime\x20aliases:\x20','unknown',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','members','\x0a\x20\x20Similar\x20','api','map','527659IiimGr','══\x20','//\x20'];_0x32e6=function(){return _0x3adf6f;};return _0x32e6();}import{Command as _0x2452d3,Option as _0x446f70}from'commander';var r=0x48,i=0x5a;function a(_0x4c4065){const _0x233dc8=_0x275e;return(_0x4c4065[_0x233dc8(0x206)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x4c4065)[_0x233dc8(0x1ef)]();}function o(_0x2ee0c1,_0x1f56e1){const _0x35319b=_0x275e;return _0x2ee0c1[_0x35319b(0x200)]>_0x1f56e1?_0x2ee0c1[_0x35319b(0x1d5)](0x0,_0x1f56e1-0x1)+'…':_0x2ee0c1;}function s(_0x10648b){const _0x159fad=_0x275e;let _0x1bfaad=_0x10648b[_0x159fad(0x244)]===''?'':_0x159fad(0x1f3)+a(_0x10648b[_0x159fad(0x244)]);return'['+_0x10648b['kind']+']\x20'+o(_0x10648b['signature'],r)+o(_0x1bfaad,i)+_0x159fad(0x216)+_0x10648b[_0x159fad(0x1c2)]+']';}function c(_0x4318b1,_0x44322e){const _0x6ad5bd=_0x275e;if(_0x4318b1[_0x6ad5bd(0x22f)][_0x6ad5bd(0x200)]===0x0){let _0x2650b5=_0x44322e===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0x44322e+')';return _0x6ad5bd(0x218)+_0x4318b1[_0x6ad5bd(0x213)]+'\x22'+_0x2650b5+_0x6ad5bd(0x21b)+(_0x44322e===void 0x0?'':',\x20drop\x20--unit')+_0x6ad5bd(0x1cc);}let _0x4aa8c8=_0x4318b1[_0x6ad5bd(0x22f)][_0x6ad5bd(0x1d0)](s),_0xb83b=_0x4318b1[_0x6ad5bd(0x23d)]-_0x4318b1[_0x6ad5bd(0x22f)][_0x6ad5bd(0x200)];return _0xb83b>0x0&&_0x4aa8c8[_0x6ad5bd(0x1ea)]('…\x20'+_0xb83b+_0x6ad5bd(0x1f5)),_0x4aa8c8[_0x6ad5bd(0x1f6)]('\x0a');}function l(_0x4a2675,_0x6d1a82){const _0x3be169=_0x275e;return _0x4a2675[_0x3be169(0x1d0)](_0x2e84f6=>{const _0x35416c=_0x3be169;let _0x193616=c(_0x2e84f6,_0x6d1a82);return _0x4a2675[_0x35416c(0x200)]>0x1?_0x35416c(0x1d2)+_0x2e84f6[_0x35416c(0x213)]+_0x35416c(0x241)+_0x193616:_0x193616;})[_0x3be169(0x1f6)]('\x0a\x0a');}function u(_0x372b93){const _0x2f1813=_0x275e;return _0x372b93[_0x2f1813(0x1fc)](/\n\s*\n/u,0x1)[0x0]?.['trim']()??'';}function d(_0x284f22){const _0x5732b0=_0x275e;return _0x284f22[_0x5732b0(0x233)]===void 0x0?{'description':_0x284f22[_0x5732b0(0x244)],'tags':_0x284f22[_0x5732b0(0x239)]===''?[]:[{'name':_0x5732b0(0x239),'text':_0x284f22[_0x5732b0(0x239)]}]}:_0x284f22[_0x5732b0(0x233)];}function f(_0x22355c){const _0x1c7d8d=_0x275e;return _0x22355c[_0x1c7d8d(0x233)]??{'description':_0x22355c[_0x1c7d8d(0x244)],'tags':[]};}function p(_0x5cb123){const _0x5ef527=_0x275e;let _0x27a945=_0x5cb123[_0x5ef527(0x202)]===void 0x0?'':'\x20{'+_0x5cb123['type']+'}',_0x3b5858=_0x5cb123[_0x5ef527(0x1ff)]===void 0x0?'':'\x20'+_0x5cb123[_0x5ef527(0x1ff)],[_0x4a1ae2='',..._0x7ed085]=_0x5cb123['text']===''?[]:_0x5cb123[_0x5ef527(0x1fe)][_0x5ef527(0x1fc)]('\x0a');return _0x5cb123[_0x5ef527(0x1ec)]===_0x5ef527(0x239)&&_0x4a1ae2['trimStart']()[_0x5ef527(0x1d9)](_0x5ef527(0x221))?['@'+_0x5cb123[_0x5ef527(0x1ec)]+_0x27a945+_0x3b5858,_0x4a1ae2,..._0x7ed085]:['@'+_0x5cb123[_0x5ef527(0x1ec)]+_0x27a945+_0x3b5858+(_0x4a1ae2===''?'':'\x20'+_0x4a1ae2),..._0x7ed085];}function m(_0x8a5123,_0x3d4365='',_0x51ca1b=!0x1){const _0x315c36=_0x275e;if(_0x8a5123===void 0x0)return[];let _0x2f3325=_0x51ca1b?u(_0x8a5123[_0x315c36(0x23c)]):_0x8a5123['description'],_0x3ef706=_0x8a5123[_0x315c36(0x20c)]['flatMap'](p),_0x540284=[..._0x2f3325[_0x315c36(0x1fc)]('\x0a'),..._0x51ca1b||_0x3ef706['length']===0x0?[]:['',..._0x3ef706]];for(;_0x540284['at'](-0x1)==='';)_0x540284[_0x315c36(0x22d)]();return _0x540284[_0x315c36(0x1df)](_0x58fd3a=>_0x58fd3a==='')?[]:[_0x3d4365+_0x315c36(0x215),..._0x540284[_0x315c36(0x1d0)](_0x31d014=>_0x3d4365+'\x20*'+(_0x31d014===''?'':'\x20'+_0x31d014)),_0x3d4365+_0x315c36(0x1c6)];}function h(_0x1c2e4e){const _0x3d4b54=_0x275e;return''+((_0x1c2e4e[_0x3d4b54(0x214)]===_0x3d4b54(0x1e6)||_0x1c2e4e[_0x3d4b54(0x1ee)])&&!_0x1c2e4e[_0x3d4b54(0x223)]['startsWith'](_0x3d4b54(0x1e7))?'readonly\x20':'')+_0x1c2e4e[_0x3d4b54(0x223)]+';';}function g(_0x3fb021){const _0x1e5ab8=_0x275e;let _0x1a3d8c=_0x3fb021[_0x1e5ab8(0x244)][_0x1e5ab8(0x1ef)]();return[..._0x1a3d8c===''?[]:[_0x1e5ab8(0x1fb)+_0x1a3d8c['replaceAll']('*/',_0x1e5ab8(0x243))+'\x20*/'],'\x20\x20'+h(_0x3fb021)];}function _(_0x3380d7,_0x2bb837,_0x332315,_0x1ec44d){const _0x3eb5c2=_0x275e;let _0x590929=_0x2bb837===_0x3eb5c2(0x234)?[]:[_0x3eb5c2(0x1d3)+(_0x2bb837===_0x3eb5c2(0x20f)?_0x3eb5c2(0x20f):_0x3eb5c2(0x1d4))+_0x3eb5c2(0x1f0)+_0x3380d7],_0x109200=_0x2bb837===_0x3eb5c2(0x234)?_0x1ec44d:_0x2bb837===_0x3eb5c2(0x20f)?_0x3eb5c2(0x246)+_0x3380d7:_0x3eb5c2(0x22b)+_0x3380d7;return[..._0x590929,_0x109200+'\x20{',..._0x332315['flatMap'](g),'}'];}function v(_0x24b8fa){const _0x2987a8=_0x275e;return typeof _0x24b8fa==_0x2987a8(0x236)?String(_0x24b8fa):JSON['stringify'](_0x24b8fa);}function y(_0x339062,_0x8b4585=!0x1){const _0x437d1c=_0x275e;let _0x4a586b=_0x339062[_0x437d1c(0x233)]??(_0x339062['summary']===void 0x0?void 0x0:{'description':_0x339062[_0x437d1c(0x244)],'tags':[]}),_0x22244e=_0x339062[_0x437d1c(0x202)][_0x437d1c(0x1d9)]('(')&&!_0x339062[_0x437d1c(0x202)][_0x437d1c(0x23a)]('=>')?'':':\x20',_0x555b5d=_0x339062[_0x437d1c(0x231)]??''+_0x339062[_0x437d1c(0x1ec)]+(_0x339062[_0x437d1c(0x1f7)]?'?':'')+_0x22244e+_0x339062[_0x437d1c(0x202)];return[...m(_0x4a586b,'\x20\x20',!_0x8b4585),'\x20\x20'+_0x555b5d+';'];}function b(_0x172f9b,_0x559466=!0x1){const _0x190995=_0x275e;let _0x533293=_0x172f9b[_0x190995(0x224)]??[],_0x49e759=[_0x190995(0x1e5)+_0x172f9b[_0x190995(0x1c2)]+(_0x533293[_0x190995(0x200)]===0x0?'':_0x190995(0x1ca)+_0x533293[_0x190995(0x1f6)](',\x20')),...m(f(_0x172f9b))];if(_0x172f9b[_0x190995(0x214)]===_0x190995(0x211))return _0x49e759[_0x190995(0x1ea)](_0x190995(0x201)+(_0x172f9b[_0x190995(0x231)]??_0x172f9b[_0x190995(0x1ec)])+'\x20{',...(_0x172f9b['values']??[])[_0x190995(0x1d0)](_0x469556=>'\x20\x20'+_0x469556[_0x190995(0x1ec)]+_0x190995(0x23e)+v(_0x469556['value'])+','),'}'),_0x49e759[_0x190995(0x1f6)]('\x0a');if(_0x172f9b['kind']===_0x190995(0x1fa))return _0x49e759[_0x190995(0x1ea)](_0x190995(0x1d6)+(_0x172f9b[_0x190995(0x231)]??_0x172f9b[_0x190995(0x1ec)]+_0x190995(0x23e)+(_0x172f9b[_0x190995(0x1c5)]??_0x190995(0x1cb)))+';'),_0x49e759['join']('\x0a');let _0xd5447a=_0x172f9b['extends']===void 0x0?'':_0x190995(0x23b)+_0x172f9b['extends'];return _0x49e759['push'](_0x190995(0x22b)+(_0x172f9b['declaration']??''+_0x172f9b['name']+_0xd5447a)+'\x20{',...(_0x172f9b[_0x190995(0x1cd)]??[])[_0x190995(0x1c9)](_0x14a3cd=>y(_0x14a3cd,_0x559466)),...(_0x172f9b[_0x190995(0x212)]??[])[_0x190995(0x1d0)](_0x19884b=>'\x20\x20'+_0x19884b+';'),'}'),_0x49e759[_0x190995(0x1f6)]('\x0a');}function x(_0x7d45ab){const _0x58b2a3=_0x275e;return _0x7d45ab['length']===0x0?[]:['','//\x20directly\x20referenced\x20types',..._0x7d45ab[_0x58b2a3(0x1c9)]((_0x512446,_0x43b4ff)=>[..._0x43b4ff===0x0?[]:[''],b(_0x512446)])];}function S(_0x49d48c){const _0x1978e4=_0x275e;if(_0x49d48c[_0x1978e4(0x1e1)]==='not-found')return'';if(_0x49d48c[_0x1978e4(0x214)]===_0x1978e4(0x232)){let _0x436474=_0x49d48c['groups'][_0x1978e4(0x240)]((_0x1f2da2,_0x188c64)=>_0x1f2da2+_0x188c64[_0x1978e4(0x1cd)][_0x1978e4(0x200)],0x0),_0x107280=_0x49d48c['groups'][_0x1978e4(0x20e)](_0x1030b2=>_0x1030b2[_0x1978e4(0x226)]===_0x1978e4(0x234)),_0xf586f2=_0x49d48c[_0x1978e4(0x22a)]===_0x1978e4(0x232)?_0x1978e4(0x246)+_0x49d48c[_0x1978e4(0x231)]:_0x1978e4(0x1d6)+_0x49d48c[_0x1978e4(0x231)],_0x4baabd=[_0x1978e4(0x1e5)+_0x49d48c[_0x1978e4(0x1c2)]+';\x20'+_0x436474+_0x1978e4(0x217),...m(_0x49d48c['documentation'])];_0x49d48c[_0x1978e4(0x22a)]==='alias'?(_0x4baabd[_0x1978e4(0x1ea)](_0xf586f2+';'),_0x107280!==void 0x0&&_0x4baabd[_0x1978e4(0x1ea)]('',..._(_0x107280[_0x1978e4(0x23f)],_0x1978e4(0x234),_0x107280[_0x1978e4(0x1cd)],_0x1978e4(0x22b)+_0x107280[_0x1978e4(0x23f)]))):_0x4baabd[_0x1978e4(0x1ea)](..._(_0x49d48c[_0x1978e4(0x1ec)],_0x1978e4(0x234),_0x107280?.[_0x1978e4(0x1cd)]??[],_0xf586f2));for(let _0x59e7a3 of _0x49d48c[_0x1978e4(0x1ed)]['filter'](_0x46a308=>_0x46a308[_0x1978e4(0x226)]!==_0x1978e4(0x234)))_0x4baabd[_0x1978e4(0x1ea)]('',..._(_0x59e7a3['owner'],_0x59e7a3['relation'],_0x59e7a3[_0x1978e4(0x1cd)],_0xf586f2));return _0x4baabd[_0x1978e4(0x1ea)]('',_0x1978e4(0x20a)+_0x49d48c[_0x1978e4(0x1ec)]+'.<member>'),_0x4baabd[_0x1978e4(0x1f6)]('\x0a');}if(_0x49d48c['kind']===_0x1978e4(0x22e)){let [_0x3c75bb]=_0x49d48c[_0x1978e4(0x21f)];if(_0x3c75bb===void 0x0)return'';let _0x1b1c28=_0x3c75bb[_0x1978e4(0x226)]===_0x1978e4(0x234)?[]:[_0x1978e4(0x1d3)+_0x3c75bb[_0x1978e4(0x226)]+_0x1978e4(0x1e8)+_0x3c75bb[_0x1978e4(0x238)]];return[_0x1978e4(0x1e5)+_0x3c75bb[_0x1978e4(0x22e)][_0x1978e4(0x1c2)],..._0x1b1c28,_0x1978e4(0x246)+_0x49d48c[_0x1978e4(0x1de)]+'\x20{',..._0x49d48c[_0x1978e4(0x21f)][_0x1978e4(0x1c9)](_0x399418=>[...m(d(_0x399418[_0x1978e4(0x22e)]),'\x20\x20'),'\x20\x20'+h(_0x399418[_0x1978e4(0x22e)])]),'}',...x([...new Map(_0x49d48c['entries'][_0x1978e4(0x1c9)](_0x20870d=>_0x20870d['appendix'])[_0x1978e4(0x1d0)](_0x53616d=>[_0x53616d['name'],_0x53616d]))[_0x1978e4(0x230)]()])][_0x1978e4(0x1f6)]('\x0a');}return _0x49d48c[_0x1978e4(0x214)]===_0x1978e4(0x202)?[b(_0x49d48c[_0x1978e4(0x202)]),..._0x49d48c[_0x1978e4(0x20f)][_0x1978e4(0x1c9)](_0x7f2d59=>['',_0x1978e4(0x208)+_0x7f2d59['name'],b(_0x7f2d59)]),...x(_0x49d48c['appendix'])]['join']('\x0a'):'value'in _0x49d48c[_0x1978e4(0x22e)]?'//\x20package:\x20'+_0x49d48c[_0x1978e4(0x235)][_0x1978e4(0x1c2)]+'\x0adeclare\x20enum\x20'+_0x49d48c[_0x1978e4(0x235)][_0x1978e4(0x1ec)]+'\x20{\x0a\x20\x20'+_0x49d48c[_0x1978e4(0x22e)][_0x1978e4(0x1ec)]+_0x1978e4(0x23e)+v(_0x49d48c[_0x1978e4(0x22e)]['value'])+_0x1978e4(0x1c0):[_0x1978e4(0x1e5)+_0x49d48c['declaredBy'][_0x1978e4(0x1c2)]+(_0x49d48c[_0x1978e4(0x235)]['name']===_0x49d48c['requestedType'][_0x1978e4(0x1ec)]?'':_0x1978e4(0x245)+_0x49d48c[_0x1978e4(0x235)][_0x1978e4(0x1ec)]),'interface\x20'+_0x49d48c[_0x1978e4(0x1dd)][_0x1978e4(0x1ec)]+'\x20{',...y(_0x49d48c[_0x1978e4(0x22e)],!0x0),'}',...x(_0x49d48c[_0x1978e4(0x1db)])][_0x1978e4(0x1f6)]('\x0a');}function _0x275e(_0x39c921,_0xb1b6d4){_0x39c921=_0x39c921-0x1c0;const _0x32e6b6=_0x32e6();let _0x275eb2=_0x32e6b6[_0x39c921];return _0x275eb2;}function C(_0x5e6104){const _0x38a6fd=_0x275e;let _0x1e03c8=_0x5e6104[_0x38a6fd(0x20d)][_0x38a6fd(0x200)]===0x0?'':_0x38a6fd(0x1ce)+(_0x5e6104[_0x38a6fd(0x214)]===_0x38a6fd(0x22e)?_0x38a6fd(0x1da):_0x38a6fd(0x1e9))+':\x20'+_0x5e6104[_0x38a6fd(0x20d)][_0x38a6fd(0x1f6)](',\x20');return _0x5e6104[_0x38a6fd(0x214)]==='member'?(_0x5e6104['owner']??_0x38a6fd(0x20b))+_0x38a6fd(0x21c)+(_0x5e6104['member']??_0x38a6fd(0x22e))+_0x1e03c8+_0x38a6fd(0x1c7)+(_0x5e6104[_0x38a6fd(0x23f)]??_0x38a6fd(0x1f9)):_0x38a6fd(0x225)+_0x5e6104[_0x38a6fd(0x209)]+_0x1e03c8+_0x38a6fd(0x220);}function w(_0x545b28,_0x1e49bb){const _0x4b230e=_0x275e;let _0x576dbe=_0x545b28[_0x4b230e(0x237)](),_0x46d036=_0x1e49bb[_0x4b230e(0x242)](_0xb7cb9=>_0xb7cb9[_0x4b230e(0x1e1)]===_0x4b230e(0x210)),_0x2710dc=_0x1e49bb[_0x4b230e(0x242)](_0x5edbf8=>_0x5edbf8[_0x4b230e(0x1e1)]===_0x4b230e(0x1c4)),_0x541dce=_0x1e49bb['length']>0x1;_0x46d036[_0x4b230e(0x200)]>0x0&&_0x576dbe[_0x4b230e(0x22c)]?.(''+_0x46d036[_0x4b230e(0x1d0)](_0x13341e=>_0x541dce?_0x4b230e(0x1f8)+_0x13341e[_0x4b230e(0x209)]+'\x0a'+S(_0x13341e):S(_0x13341e))[_0x4b230e(0x1f6)]('\x0a\x0a')+(_0x541dce&&_0x2710dc[_0x4b230e(0x200)]===0x0?'\x0a\x0a//\x20batch:\x20'+_0x46d036[_0x4b230e(0x200)]+_0x4b230e(0x1eb):'')+'\x0a'),_0x2710dc['length']>0x0&&_0x545b28['error']([..._0x2710dc['map'](_0x2697f0=>_0x541dce?_0x4b230e(0x1d7)+_0x2697f0[_0x4b230e(0x209)]+'\x0a'+C(_0x2697f0):C(_0x2697f0)),..._0x541dce?[_0x4b230e(0x1dc)+_0x46d036[_0x4b230e(0x200)]+_0x4b230e(0x222)+_0x2710dc[_0x4b230e(0x200)]+'\x20not\x20found']:[]][_0x4b230e(0x1f6)]('\x0a\x0a'),{'code':_0x4b230e(0x21e),'exitCode':0x1});}function T(_0x5322d6){const _0x37515d=_0x275e;let _0x47192f=new _0x2452d3(_0x37515d(0x1cf))['description'](_0x37515d(0x207))['argument'](_0x37515d(0x229),'exact\x20symbols;\x20shorthand\x20for\x20api\x20show')['action'](_0x1bc39a=>{const _0x5e0cd7=_0x37515d;if(_0x1bc39a['length']===0x0){_0x47192f[_0x5e0cd7(0x204)]();return;}w(_0x47192f,_0x5322d6['reference'][_0x5e0cd7(0x1c1)](_0x1bc39a));});return _0x47192f['command']('find')[_0x37515d(0x23c)](_0x37515d(0x203))[_0x37515d(0x1f1)](_0x37515d(0x1c3),_0x37515d(0x228))[_0x37515d(0x1f2)](new _0x446f70('--unit\x20<unit>',_0x37515d(0x1c8))['choices'](_0x15eee5))[_0x37515d(0x1e2)]((_0x3c2c72,_0x44c18b)=>{const _0x4a8324=_0x37515d;let _0x3c3e07=_0x5322d6[_0x4a8324(0x1fd)][_0x4a8324(0x20e)]({'terms':_0x3c2c72,..._0x44c18b[_0x4a8324(0x1e0)]===void 0x0?{}:{'unit':_0x44c18b[_0x4a8324(0x1e0)]}});_0x47192f[_0x4a8324(0x237)]()[_0x4a8324(0x22c)]?.(l(_0x3c3e07,_0x44c18b['unit'])+'\x0a');}),_0x47192f['command'](_0x37515d(0x1c1))['description']('Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values')['argument']('<symbols...>','one\x20or\x20more\x20exact\x20API\x20symbols')[_0x37515d(0x1e2)](_0x34202f=>{const _0x377c93=_0x37515d;w(_0x47192f,_0x5322d6[_0x377c93(0x1fd)][_0x377c93(0x1c1)](_0x34202f));}),_0x47192f;}export{T as createApiCommand};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/api-reference-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
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/api-reference": "1.0.
|
|
21
|
+
"@univer-cli/api-reference": "1.0.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|