@univer-cli/api-reference-command 1.0.1 → 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(_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(_0x2ea2a1,_0x5e731b){const _0x168ad3=_0x4642,_0x164038=_0x2ea2a1();while(!![]){try{const _0x265e01=-parseInt(_0x168ad3(0x18f))/0x1*(-parseInt(_0x168ad3(0x118))/0x2)+-parseInt(_0x168ad3(0x11f))/0x3*(parseInt(_0x168ad3(0x146))/0x4)+-parseInt(_0x168ad3(0x16f))/0x5*(parseInt(_0x168ad3(0x13a))/0x6)+parseInt(_0x168ad3(0x120))/0x7*(-parseInt(_0x168ad3(0x153))/0x8)+parseInt(_0x168ad3(0x165))/0x9*(parseInt(_0x168ad3(0x17f))/0xa)+parseInt(_0x168ad3(0x195))/0xb*(-parseInt(_0x168ad3(0x19b))/0xc)+parseInt(_0x168ad3(0x169))/0xd;if(_0x265e01===_0x5e731b)break;else _0x164038['push'](_0x164038['shift']());}catch(_0x3c4790){_0x164038['push'](_0x164038['shift']());}}}(_0x371f,0x8e93d));import{API_REFERENCE_UNITS as _0x381247}from'@univer-cli/api-reference';import{Command as _0x213ab2,Option as _0x1ec18d}from'commander';var r=0x48,i=0x5a;function a(_0x34e838){const _0x52790e=_0x4642;return(_0x34e838['match'](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x34e838)[_0x52790e(0x119)]();}function o(_0x1e2e3b,_0x1d8984){const _0x30c1af=_0x4642;return _0x1e2e3b[_0x30c1af(0x121)]>_0x1d8984?_0x1e2e3b[_0x30c1af(0x18e)](0x0,_0x1d8984-0x1)+'…':_0x1e2e3b;}function s(_0x300c6e){const _0x2e55ae=_0x4642;let _0x5e3569=_0x300c6e['summary']===''?'':_0x2e55ae(0x151)+a(_0x300c6e[_0x2e55ae(0x177)]);return'['+_0x300c6e[_0x2e55ae(0x17d)]+']\x20'+o(_0x300c6e[_0x2e55ae(0x164)],r)+o(_0x5e3569,i)+'\x20\x20['+_0x300c6e[_0x2e55ae(0x172)]+']';}function c(_0x63cb7b,_0x4adfb1){const _0x41a68f=_0x4642;if(_0x63cb7b[_0x41a68f(0x160)][_0x41a68f(0x121)]===0x0){let _0x331c2c=_0x4adfb1===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0x4adfb1+')';return _0x41a68f(0x13b)+_0x63cb7b[_0x41a68f(0x182)]+'\x22'+_0x331c2c+_0x41a68f(0x163)+(_0x4adfb1===void 0x0?'':_0x41a68f(0x175))+_0x41a68f(0x166);}let _0xa53f22=_0x63cb7b[_0x41a68f(0x160)][_0x41a68f(0x124)](s),_0x46ff92=_0x63cb7b[_0x41a68f(0x16e)]-_0x63cb7b['matches'][_0x41a68f(0x121)];return _0x46ff92>0x0&&_0xa53f22['push']('…\x20'+_0x46ff92+'\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.'),_0xa53f22[_0x41a68f(0x168)]('\x0a');}function l(_0x416b49,_0x5ec55b){const _0x3df903=_0x4642;return _0x416b49[_0x3df903(0x124)](_0x2be4c4=>{const _0x231c46=_0x3df903;let _0x54ea75=c(_0x2be4c4,_0x5ec55b);return _0x416b49['length']>0x1?_0x231c46(0x11b)+_0x2be4c4[_0x231c46(0x182)]+_0x231c46(0x174)+_0x54ea75:_0x54ea75;})[_0x3df903(0x168)]('\x0a\x0a');}function u(_0x486adc){const _0x462d7d=_0x4642;return _0x486adc[_0x462d7d(0x12f)](/\n\s*\n/u,0x1)[0x0]?.[_0x462d7d(0x119)]()??'';}function d(_0x585cf4){const _0x455d67=_0x4642;return _0x585cf4['documentation']===void 0x0?{'description':_0x585cf4[_0x455d67(0x177)],'tags':_0x585cf4[_0x455d67(0x14a)]===''?[]:[{'name':_0x455d67(0x14a),'text':_0x585cf4[_0x455d67(0x14a)]}]}:_0x585cf4[_0x455d67(0x130)];}function f(_0x557e2a){const _0x306590=_0x4642;return _0x557e2a[_0x306590(0x130)]??{'description':_0x557e2a[_0x306590(0x177)],'tags':[]};}function p(_0x14224c){const _0x3f2484=_0x4642;let _0xaa4f55=_0x14224c['type']===void 0x0?'':'\x20{'+_0x14224c[_0x3f2484(0x15f)]+'}',_0x36ae7b=_0x14224c[_0x3f2484(0x133)]===void 0x0?'':'\x20'+_0x14224c[_0x3f2484(0x133)],[_0x47a83e='',..._0xb8c175]=_0x14224c[_0x3f2484(0x149)]===''?[]:_0x14224c[_0x3f2484(0x149)][_0x3f2484(0x12f)]('\x0a');return _0x14224c['name']===_0x3f2484(0x14a)&&_0x47a83e['trimStart']()['startsWith'](_0x3f2484(0x15e))?['@'+_0x14224c[_0x3f2484(0x14d)]+_0xaa4f55+_0x36ae7b,_0x47a83e,..._0xb8c175]:['@'+_0x14224c['name']+_0xaa4f55+_0x36ae7b+(_0x47a83e===''?'':'\x20'+_0x47a83e),..._0xb8c175];}function m(_0x18bcd1,_0x2301b1='',_0x3fbfc1=!0x1){const _0x454fb2=_0x4642;if(_0x18bcd1===void 0x0)return[];let _0x21adb2=_0x3fbfc1?u(_0x18bcd1[_0x454fb2(0x12a)]):_0x18bcd1[_0x454fb2(0x12a)],_0x2cb847=_0x18bcd1['tags']['flatMap'](p),_0x47d853=[..._0x21adb2['split']('\x0a'),..._0x3fbfc1||_0x2cb847[_0x454fb2(0x121)]===0x0?[]:['',..._0x2cb847]];for(;_0x47d853['at'](-0x1)==='';)_0x47d853[_0x454fb2(0x19e)]();return _0x47d853[_0x454fb2(0x194)](_0x113ab5=>_0x113ab5==='')?[]:[_0x2301b1+_0x454fb2(0x157),..._0x47d853[_0x454fb2(0x124)](_0x3d8233=>_0x2301b1+'\x20*'+(_0x3d8233===''?'':'\x20'+_0x3d8233)),_0x2301b1+_0x454fb2(0x139)];}function h(_0x6c576e){const _0x403613=_0x4642;return''+((_0x6c576e['kind']===_0x403613(0x13e)||_0x6c576e[_0x403613(0x140)])&&!_0x6c576e[_0x403613(0x164)]['startsWith']('readonly\x20')?_0x403613(0x189):'')+_0x6c576e[_0x403613(0x164)]+';';}function g(_0x41d986){const _0x4d519a=_0x4642;let _0x66c23a=_0x41d986[_0x4d519a(0x177)][_0x4d519a(0x119)]();return[..._0x66c23a===''?[]:['\x20\x20/**\x20'+_0x66c23a[_0x4d519a(0x12b)]('*/','*\x5c/')+_0x4d519a(0x139)],'\x20\x20'+h(_0x41d986)];}function _(_0x12f3d1,_0x12e1d3,_0x33f01b,_0x544d6b){const _0x59e6f1=_0x4642;let _0xf398ae=_0x12e1d3===_0x59e6f1(0x18b)?[]:[_0x59e6f1(0x116)+(_0x12e1d3===_0x59e6f1(0x184)?_0x59e6f1(0x184):_0x59e6f1(0x192))+_0x59e6f1(0x193)+_0x12f3d1],_0x1696bd=_0x12e1d3===_0x59e6f1(0x18b)?_0x544d6b:_0x12e1d3==='inherited'?_0x59e6f1(0x14f)+_0x12f3d1:_0x59e6f1(0x15c)+_0x12f3d1;return[..._0xf398ae,_0x1696bd+'\x20{',..._0x33f01b[_0x59e6f1(0x123)](g),'}'];}function v(_0x5319a5){return typeof _0x5319a5=='number'?String(_0x5319a5):JSON['stringify'](_0x5319a5);}function y(_0x2dad01,_0x28e35d=!0x1){const _0x44b3c5=_0x4642;let _0x3ac9d5=_0x2dad01[_0x44b3c5(0x130)]??(_0x2dad01[_0x44b3c5(0x177)]===void 0x0?void 0x0:{'description':_0x2dad01['summary'],'tags':[]}),_0x124e12=_0x2dad01[_0x44b3c5(0x15f)][_0x44b3c5(0x11c)]('(')&&!_0x2dad01[_0x44b3c5(0x15f)][_0x44b3c5(0x171)]('=>')?'':':\x20',_0x4b26ca=_0x2dad01[_0x44b3c5(0x134)]??''+_0x2dad01[_0x44b3c5(0x14d)]+(_0x2dad01[_0x44b3c5(0x183)]?'?':'')+_0x124e12+_0x2dad01[_0x44b3c5(0x15f)];return[...m(_0x3ac9d5,'\x20\x20',!_0x28e35d),'\x20\x20'+_0x4b26ca+';'];}function b(_0x2ab379,_0xd0710=!0x1){const _0x4d82fc=_0x4642;let _0x1846fd=_0x2ab379[_0x4d82fc(0x127)]??[],_0x577f30=['//\x20package:\x20'+_0x2ab379[_0x4d82fc(0x172)]+(_0x1846fd['length']===0x0?'':_0x4d82fc(0x126)+_0x1846fd[_0x4d82fc(0x168)](',\x20')),...m(f(_0x2ab379))];if(_0x2ab379[_0x4d82fc(0x17d)]===_0x4d82fc(0x17b))return _0x577f30['push'](_0x4d82fc(0x167)+(_0x2ab379[_0x4d82fc(0x134)]??_0x2ab379['name'])+'\x20{',...(_0x2ab379[_0x4d82fc(0x18a)]??[])['map'](_0x2e45c8=>'\x20\x20'+_0x2e45c8['name']+_0x4d82fc(0x128)+v(_0x2e45c8[_0x4d82fc(0x18c)])+','),'}'),_0x577f30[_0x4d82fc(0x168)]('\x0a');if(_0x2ab379[_0x4d82fc(0x17d)]===_0x4d82fc(0x12e))return _0x577f30[_0x4d82fc(0x13f)](_0x4d82fc(0x143)+(_0x2ab379[_0x4d82fc(0x134)]??_0x2ab379[_0x4d82fc(0x14d)]+'\x20=\x20'+(_0x2ab379[_0x4d82fc(0x191)]??_0x4d82fc(0x180)))+';'),_0x577f30[_0x4d82fc(0x168)]('\x0a');let _0x470452=_0x2ab379[_0x4d82fc(0x176)]===void 0x0?'':_0x4d82fc(0x115)+_0x2ab379['extends'];return _0x577f30[_0x4d82fc(0x13f)](_0x4d82fc(0x15c)+(_0x2ab379[_0x4d82fc(0x134)]??''+_0x2ab379['name']+_0x470452)+'\x20{',...(_0x2ab379[_0x4d82fc(0x170)]??[])[_0x4d82fc(0x123)](_0x249304=>y(_0x249304,_0xd0710)),...(_0x2ab379[_0x4d82fc(0x181)]??[])[_0x4d82fc(0x124)](_0x2e2658=>'\x20\x20'+_0x2e2658+';'),'}'),_0x577f30[_0x4d82fc(0x168)]('\x0a');}function x(_0x17ab58){const _0x23f01d=_0x4642;return _0x17ab58[_0x23f01d(0x121)]===0x0?[]:['',_0x23f01d(0x198),..._0x17ab58[_0x23f01d(0x123)]((_0x16988d,_0x4eaacb)=>[..._0x4eaacb===0x0?[]:[''],b(_0x16988d)])];}function S(_0x4b0802){const _0x15b942=_0x4642;if(_0x4b0802[_0x15b942(0x154)]===_0x15b942(0x137))return'';if(_0x4b0802['kind']===_0x15b942(0x135)){let _0x5b1795=_0x4b0802[_0x15b942(0x117)][_0x15b942(0x15b)]((_0x2c2c4b,_0x325248)=>_0x2c2c4b+_0x325248['members'][_0x15b942(0x121)],0x0),_0x36d910=_0x4b0802[_0x15b942(0x117)][_0x15b942(0x15a)](_0x180ed7=>_0x180ed7['relation']===_0x15b942(0x18b)),_0x4c5748=_0x4b0802[_0x15b942(0x141)]===_0x15b942(0x135)?_0x15b942(0x14f)+_0x4b0802['declaration']:_0x15b942(0x143)+_0x4b0802['declaration'],_0x21d419=['//\x20package:\x20'+_0x4b0802[_0x15b942(0x172)]+';\x20'+_0x5b1795+_0x15b942(0x199),...m(_0x4b0802[_0x15b942(0x130)])];_0x4b0802[_0x15b942(0x141)]==='alias'?(_0x21d419[_0x15b942(0x13f)](_0x4c5748+';'),_0x36d910!==void 0x0&&_0x21d419[_0x15b942(0x13f)]('',..._(_0x36d910[_0x15b942(0x19a)],_0x15b942(0x18b),_0x36d910['members'],_0x15b942(0x15c)+_0x36d910[_0x15b942(0x19a)]))):_0x21d419['push'](..._(_0x4b0802[_0x15b942(0x14d)],_0x15b942(0x18b),_0x36d910?.[_0x15b942(0x170)]??[],_0x4c5748));for(let _0x50dddf of _0x4b0802[_0x15b942(0x117)][_0x15b942(0x150)](_0x42cf1f=>_0x42cf1f[_0x15b942(0x138)]!==_0x15b942(0x18b)))_0x21d419[_0x15b942(0x13f)]('',..._(_0x50dddf['owner'],_0x50dddf[_0x15b942(0x138)],_0x50dddf[_0x15b942(0x170)],_0x4c5748));return _0x21d419[_0x15b942(0x13f)]('',_0x15b942(0x161)+_0x4b0802[_0x15b942(0x14d)]+_0x15b942(0x125)),_0x21d419[_0x15b942(0x168)]('\x0a');}if(_0x4b0802[_0x15b942(0x17d)]===_0x15b942(0x152)){let [_0x4c2f60]=_0x4b0802[_0x15b942(0x16b)];if(_0x4c2f60===void 0x0)return'';let _0x59ded5=_0x4c2f60[_0x15b942(0x138)]===_0x15b942(0x18b)?[]:[_0x15b942(0x116)+_0x4c2f60['relation']+_0x15b942(0x15d)+_0x4c2f60[_0x15b942(0x19c)]];return[_0x15b942(0x14b)+_0x4c2f60[_0x15b942(0x152)][_0x15b942(0x172)],..._0x59ded5,'declare\x20class\x20'+_0x4b0802['target']+'\x20{',..._0x4b0802[_0x15b942(0x16b)]['flatMap'](_0x3bcd28=>[...m(d(_0x3bcd28[_0x15b942(0x152)]),'\x20\x20'),'\x20\x20'+h(_0x3bcd28[_0x15b942(0x152)])]),'}',...x([...new Map(_0x4b0802[_0x15b942(0x16b)][_0x15b942(0x123)](_0x293b38=>_0x293b38[_0x15b942(0x11a)])[_0x15b942(0x124)](_0xe37289=>[_0xe37289[_0x15b942(0x14d)],_0xe37289]))[_0x15b942(0x18a)]()])][_0x15b942(0x168)]('\x0a');}return _0x4b0802[_0x15b942(0x17d)]==='type'?[b(_0x4b0802[_0x15b942(0x15f)]),..._0x4b0802[_0x15b942(0x184)][_0x15b942(0x123)](_0x2a2ce1=>['','//\x20inherited\x20declaration\x20from\x20'+_0x2a2ce1['name'],b(_0x2a2ce1)]),...x(_0x4b0802['appendix'])][_0x15b942(0x168)]('\x0a'):_0x15b942(0x18c)in _0x4b0802[_0x15b942(0x152)]?_0x15b942(0x14b)+_0x4b0802['declaredBy'][_0x15b942(0x172)]+_0x15b942(0x11e)+_0x4b0802[_0x15b942(0x156)][_0x15b942(0x14d)]+_0x15b942(0x16a)+_0x4b0802[_0x15b942(0x152)]['name']+_0x15b942(0x128)+v(_0x4b0802['member'][_0x15b942(0x18c)])+',\x0a}':[_0x15b942(0x14b)+_0x4b0802['declaredBy'][_0x15b942(0x172)]+(_0x4b0802[_0x15b942(0x156)]['name']===_0x4b0802[_0x15b942(0x17c)]['name']?'':_0x15b942(0x12d)+_0x4b0802[_0x15b942(0x156)][_0x15b942(0x14d)]),_0x15b942(0x15c)+_0x4b0802['requestedType'][_0x15b942(0x14d)]+'\x20{',...y(_0x4b0802['member'],!0x0),'}',...x(_0x4b0802['appendix'])][_0x15b942(0x168)]('\x0a');}function C(_0x1c0c7e){const _0x1acc88=_0x4642;let _0x86d6c2=_0x1c0c7e[_0x1acc88(0x185)][_0x1acc88(0x121)]===0x0?'':_0x1acc88(0x16d)+(_0x1c0c7e[_0x1acc88(0x17d)]===_0x1acc88(0x152)?_0x1acc88(0x122):_0x1acc88(0x197))+':\x20'+_0x1c0c7e[_0x1acc88(0x185)][_0x1acc88(0x168)](',\x20');return _0x1c0c7e['kind']===_0x1acc88(0x152)?(_0x1c0c7e[_0x1acc88(0x19a)]??'Symbol')+_0x1acc88(0x11d)+(_0x1c0c7e[_0x1acc88(0x152)]??'member')+_0x86d6c2+_0x1acc88(0x13d)+(_0x1c0c7e['owner']??_0x1acc88(0x19d)):'Unknown\x20symbol:\x20'+_0x1c0c7e['query']+_0x86d6c2+_0x1acc88(0x147);}function _0x371f(){const _0x587fdd=['.<member>',';\x20runtime\x20aliases:\x20','aliases','\x20=\x20','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','description','replaceAll','addOption',';\x20inherited\x20from\x20','alias','split','documentation','<terms...>','choices','subject','declaration','class','show','not-found','relation','\x20*/','3498Yalppk','No\x20API\x20matches\x20\x22','configureOutput','\x0a\x20\x20List\x20all:\x20api\x20show\x20','getter','push','readonly','declarationKind','outputHelp','type\x20','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','action','120xIPzdF','\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.','[symbols...]','text','example','//\x20package:\x20','argument','name','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','declare\x20class\x20','filter','\x20\x20—\x20','member','32TYOhJM','status','//\x20batch:\x20','declaredBy','/**','one\x20or\x20more\x20exact\x20API\x20symbols','writeOut','find','reduce','interface\x20','\x20from\x20','```','type','matches','//\x20full\x20member\x20docs:\x20api\x20show\x20','//\x20[found]\x20','.\x20Try\x20a\x20shorter\x20substring','signature','36KdKpHk',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','declare\x20enum\x20','join','21306402qmCzwk','\x20{\x0a\x20\x20','entries','command','\x0a\x20\x20Similar\x20','totalMatches','7925NFzxVH','members','includes','packageName','\x0a\x0a//\x20batch:\x20','\x20══\x0a',',\x20drop\x20--unit','extends','summary','//\x20[not-found]\x20','api.reference.not-found','<symbols...>','enum','requestedType','kind','\x20found,\x20','192620HIMUea','unknown','signatures','term','optional','inherited','suggestions','error','api','reference','readonly\x20','values','own','value','unit','slice','1fZjLBr','query','definition','composed','\x20member\x20projection\x20from\x20','every','8564149kajLsG','found','symbols','//\x20directly\x20referenced\x20types','\x20supported\x20members','owner','12AliQNW','relationOwner','<Class>','pop','\x20extends\x20','//\x20','groups','1636078xGyGCX','trim','appendix','══\x20','startsWith','\x20has\x20no\x20','\x0adeclare\x20enum\x20','14745VcjgpA','174965CmIlKO','length','methods','flatMap','map'];_0x371f=function(){return _0x587fdd;};return _0x371f();}function _0x4642(_0x225a31,_0x33dfe7){_0x225a31=_0x225a31-0x115;const _0x371fb6=_0x371f();let _0x464275=_0x371fb6[_0x225a31];return _0x464275;}function w(_0xea3d05,_0x3d530a){const _0x476b08=_0x4642;let _0x160a9d=_0xea3d05[_0x476b08(0x13c)](),_0x4ef665=_0x3d530a['filter'](_0x5288ac=>_0x5288ac[_0x476b08(0x154)]===_0x476b08(0x196)),_0x445677=_0x3d530a[_0x476b08(0x150)](_0x55d578=>_0x55d578[_0x476b08(0x154)]==='not-found'),_0x1b439c=_0x3d530a[_0x476b08(0x121)]>0x1;_0x4ef665['length']>0x0&&_0x160a9d[_0x476b08(0x159)]?.(''+_0x4ef665[_0x476b08(0x124)](_0x5c092e=>_0x1b439c?_0x476b08(0x162)+_0x5c092e[_0x476b08(0x190)]+'\x0a'+S(_0x5c092e):S(_0x5c092e))['join']('\x0a\x0a')+(_0x1b439c&&_0x445677[_0x476b08(0x121)]===0x0?_0x476b08(0x173)+_0x4ef665[_0x476b08(0x121)]+'\x20found,\x200\x20not\x20found':'')+'\x0a'),_0x445677[_0x476b08(0x121)]>0x0&&_0xea3d05[_0x476b08(0x186)]([..._0x445677[_0x476b08(0x124)](_0x5becf6=>_0x1b439c?_0x476b08(0x178)+_0x5becf6['query']+'\x0a'+C(_0x5becf6):C(_0x5becf6)),..._0x1b439c?[_0x476b08(0x155)+_0x4ef665[_0x476b08(0x121)]+_0x476b08(0x17e)+_0x445677['length']+'\x20not\x20found']:[]][_0x476b08(0x168)]('\x0a\x0a'),{'code':_0x476b08(0x179),'exitCode':0x1});}function T(_0x139f72){const _0x42afa7=_0x4642;let _0x4e2e9c=new _0x213ab2(_0x42afa7(0x187))['description']('Offline\x20Univer\x20Facade\x20API\x20reference')[_0x42afa7(0x14c)](_0x42afa7(0x148),_0x42afa7(0x129))[_0x42afa7(0x145)](_0x231978=>{const _0x3a6f72=_0x42afa7;if(_0x231978[_0x3a6f72(0x121)]===0x0){_0x4e2e9c[_0x3a6f72(0x142)]();return;}w(_0x4e2e9c,_0x139f72['reference'][_0x3a6f72(0x136)](_0x231978));});return _0x4e2e9c[_0x42afa7(0x16c)](_0x42afa7(0x15a))[_0x42afa7(0x12a)](_0x42afa7(0x14e))[_0x42afa7(0x14c)](_0x42afa7(0x131),'one\x20or\x20more\x20terms,\x20searched\x20independently')[_0x42afa7(0x12c)](new _0x1ec18d('--unit\x20<unit>',_0x42afa7(0x144))[_0x42afa7(0x132)](_0x381247))['action']((_0x4fc5aa,_0x282c27)=>{const _0x3776df=_0x42afa7;let _0x12f3b2=_0x139f72[_0x3776df(0x188)][_0x3776df(0x15a)]({'terms':_0x4fc5aa,..._0x282c27['unit']===void 0x0?{}:{'unit':_0x282c27[_0x3776df(0x18d)]}});_0x4e2e9c[_0x3776df(0x13c)]()[_0x3776df(0x159)]?.(l(_0x12f3b2,_0x282c27[_0x3776df(0x18d)])+'\x0a');}),_0x4e2e9c['command'](_0x42afa7(0x136))[_0x42afa7(0x12a)]('Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values')[_0x42afa7(0x14c)](_0x42afa7(0x17a),_0x42afa7(0x158))[_0x42afa7(0x145)](_0xcd8c87=>{const _0x40f089=_0x42afa7;w(_0x4e2e9c,_0x139f72[_0x40f089(0x188)][_0x40f089(0x136)](_0xcd8c87));}),_0x4e2e9c;}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.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/api-reference": "1.0.
|
|
21
|
+
"@univer-cli/api-reference": "1.0.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|