@univer-cli/api-reference-command 1.6.2 → 1.7.0-alpha.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x19c0bc,_0x21a229){const _0x444316=_0x64d2,_0x317605=_0x19c0bc();while(!![]){try{const _0x1ede18=-parseInt(_0x444316(0x1de))/0x1+-parseInt(_0x444316(0x1b0))/0x2+parseInt(_0x444316(0x1c0))/0x3*(-parseInt(_0x444316(0x207))/0x4)+-parseInt(_0x444316(0x19c))/0x5+parseInt(_0x444316(0x1b5))/0x6+parseInt(_0x444316(0x203))/0x7+parseInt(_0x444316(0x1f4))/0x8;if(_0x1ede18===_0x21a229)break;else _0x317605['push'](_0x317605['shift']());}catch(_0x54dce1){_0x317605['push'](_0x317605['shift']());}}}(_0x2e6a,0xa7b0c));import{API_REFERENCE_UNITS as _0x5be44e}from'@univer-cli/api-reference';import{Command as _0x40a258,Option as _0x5e5dbb}from'commander';var r=0x48,i=0x5a;function a(_0x4edeb9){const _0x5230e4=_0x64d2;return(_0x4edeb9[_0x5230e4(0x1a4)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x4edeb9)['trim']();}function o(_0xc2af36,_0x194753){const _0x397fa1=_0x64d2;return _0xc2af36[_0x397fa1(0x1e9)]>_0x194753?_0xc2af36[_0x397fa1(0x19b)](0x0,_0x194753-0x1)+'…':_0xc2af36;}function s(_0x2b9c38){const _0x32aa2d=_0x64d2;let _0x2a2681=_0x2b9c38['summary']===''?'':_0x32aa2d(0x1c3)+a(_0x2b9c38[_0x32aa2d(0x1aa)]);return'['+_0x2b9c38[_0x32aa2d(0x1fb)]+']\x20'+o(_0x2b9c38['signature'],r)+o(_0x2a2681,i)+_0x32aa2d(0x204)+_0x2b9c38['packageName']+']';}function c(_0x857d1f,_0x3b81d7){const _0x2748aa=_0x64d2;if(_0x857d1f[_0x2748aa(0x202)][_0x2748aa(0x1e9)]===0x0){let _0x62cb59=_0x3b81d7===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0x3b81d7+')';return'No\x20API\x20matches\x20\x22'+_0x857d1f[_0x2748aa(0x1ee)]+'\x22'+_0x62cb59+'.\x20Try\x20a\x20shorter\x20substring'+(_0x3b81d7===void 0x0?'':',\x20drop\x20--unit')+_0x2748aa(0x1e3);}let _0xf63ec5=_0x857d1f[_0x2748aa(0x202)]['map'](s),_0x34a1bd=_0x857d1f[_0x2748aa(0x1fc)]-_0x857d1f[_0x2748aa(0x202)][_0x2748aa(0x1e9)];return _0x34a1bd>0x0&&_0xf63ec5['push']('…\x20'+_0x34a1bd+_0x2748aa(0x1cb)),_0xf63ec5[_0x2748aa(0x1f0)]('\x0a');}function l(_0x20489a,_0x1a62ee){const _0x21c113=_0x64d2;return _0x20489a[_0x21c113(0x194)](_0x42efee=>{const _0x115152=_0x21c113;let _0x352217=c(_0x42efee,_0x1a62ee);return _0x20489a[_0x115152(0x1e9)]>0x1?_0x115152(0x1df)+_0x42efee[_0x115152(0x1ee)]+'\x20══\x0a'+_0x352217:_0x352217;})[_0x21c113(0x1f0)]('\x0a\x0a');}function _0x64d2(_0x5f0e51,_0x371660){_0x5f0e51=_0x5f0e51-0x18c;const _0x2e6ad0=_0x2e6a();let _0x64d2d6=_0x2e6ad0[_0x5f0e51];return _0x64d2d6;}function u(_0x55fe71){const _0x2fffa0=_0x64d2;return _0x55fe71[_0x2fffa0(0x1d5)](/\n\s*\n/u,0x1)[0x0]?.[_0x2fffa0(0x1c4)]()??'';}function d(_0x2755e9){const _0xce90c3=_0x64d2;return _0x2755e9[_0xce90c3(0x208)]===void 0x0?{'description':_0x2755e9[_0xce90c3(0x1aa)],'tags':_0x2755e9[_0xce90c3(0x1a8)]===''?[]:[{'name':_0xce90c3(0x1a8),'text':_0x2755e9['example']}]}:_0x2755e9['documentation'];}function f(_0x39bfce){const _0xcb1d1d=_0x64d2;return _0x39bfce[_0xcb1d1d(0x208)]??{'description':_0x39bfce[_0xcb1d1d(0x1aa)],'tags':[]};}function p(_0x4b782e){const _0x238906=_0x64d2;let _0xec0c29=_0x4b782e[_0x238906(0x1dd)]===void 0x0?'':'\x20{'+_0x4b782e[_0x238906(0x1dd)]+'}',_0x46b66a=_0x4b782e[_0x238906(0x198)]===void 0x0?'':'\x20'+_0x4b782e[_0x238906(0x198)],[_0x4241fb='',..._0x3d243f]=_0x4b782e[_0x238906(0x1a5)]===''?[]:_0x4b782e['text'][_0x238906(0x1d5)]('\x0a');return _0x4b782e[_0x238906(0x1ca)]===_0x238906(0x1a8)&&_0x4241fb['trimStart']()[_0x238906(0x1d4)](_0x238906(0x18c))?['@'+_0x4b782e[_0x238906(0x1ca)]+_0xec0c29+_0x46b66a,_0x4241fb,..._0x3d243f]:['@'+_0x4b782e[_0x238906(0x1ca)]+_0xec0c29+_0x46b66a+(_0x4241fb===''?'':'\x20'+_0x4241fb),..._0x3d243f];}function m(_0x3c8e13,_0x2eb170='',_0x5ec0ac=!0x1){const _0x38a0b1=_0x64d2;if(_0x3c8e13===void 0x0)return[];let _0x1b2342=_0x5ec0ac?u(_0x3c8e13[_0x38a0b1(0x1be)]):_0x3c8e13[_0x38a0b1(0x1be)],_0x27c129=_0x3c8e13[_0x38a0b1(0x1f8)][_0x38a0b1(0x1f2)](p),_0x3138ac=[..._0x1b2342[_0x38a0b1(0x1d5)]('\x0a'),..._0x5ec0ac||_0x27c129['length']===0x0?[]:['',..._0x27c129]];for(;_0x3138ac['at'](-0x1)==='';)_0x3138ac['pop']();return _0x3138ac[_0x38a0b1(0x193)](_0x772fa0=>_0x772fa0==='')?[]:[_0x2eb170+_0x38a0b1(0x1a9),..._0x3138ac[_0x38a0b1(0x194)](_0x5f287e=>_0x2eb170+'\x20*'+(_0x5f287e===''?'':'\x20'+_0x5f287e)),_0x2eb170+_0x38a0b1(0x191)];}function h(_0x1486d3){const _0x570b07=_0x64d2;return''+((_0x1486d3[_0x570b07(0x1fb)]===_0x570b07(0x1d3)||_0x1486d3[_0x570b07(0x1e4)])&&!_0x1486d3[_0x570b07(0x1bd)][_0x570b07(0x1d4)](_0x570b07(0x19f))?_0x570b07(0x19f):'')+_0x1486d3[_0x570b07(0x1bd)]+';';}function _0x2e6a(){const _0x1f9d7a=['2867460aJLoaA','relation','//\x20[found]\x20','readonly\x20','target','api.reference.not-found','composed','interface\x20','match','text','number','declaration','example','/**','summary','//\x20package:\x20','//\x20directly\x20referenced\x20types','//\x20inherited\x20declaration\x20from\x20','methods','status','2419212UlKLok','command','reduce','declaredBy','\x20=\x20','7177074OBmjYV','--unit\x20<unit>','enum','alias','includes','writeOut','error','declarationKind','signature','description','declare\x20enum\x20','3610086HBFkti','//\x20full\x20member\x20docs:\x20api\x20show\x20','\x20\x20/**\x20','\x20\x20—\x20','trim','members','signatures','show',';\x20inherited\x20from\x20','groups','name','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','//\x20','aliases','\x0a\x20\x20List\x20all:\x20api\x20show\x20','value','inherited','\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.','definition','getter','startsWith','split','<terms...>','query','relationOwner','appendix','suggestions','\x0a\x20\x20Similar\x20','values','type','1165193lBIHxq','══\x20','<Class>','filter','owner',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','readonly','declare\x20class\x20','reference','\x0adeclare\x20enum\x20','\x20found,\x20','length','argument','packageName','*\x5c/','replaceAll','term','[symbols...]','join','Symbol','flatMap','find','22284680olxZTJ','action','optional','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','tags','not-found','\x20{\x0a\x20\x20','kind','totalMatches','one\x20or\x20more\x20exact\x20API\x20symbols','extends','class','.<member>','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs','matches','5997243KucRXn','\x20\x20[','requestedType','\x20has\x20no\x20','4MxflCe','documentation','unit','entries','\x20from\x20','//\x20[not-found]\x20','```','own','Unknown\x20symbol:\x20','addOption','\x20member\x20projection\x20from\x20','\x20*/','push','every','map','member','configureOutput','type\x20','subject','<symbols...>','\x20supported\x20members','slice'];_0x2e6a=function(){return _0x1f9d7a;};return _0x2e6a();}function g(_0x382e6e){const _0x19311d=_0x64d2;let _0x521b03=_0x382e6e[_0x19311d(0x1aa)][_0x19311d(0x1c4)]();return[..._0x521b03===''?[]:[_0x19311d(0x1c2)+_0x521b03[_0x19311d(0x1ed)]('*/',_0x19311d(0x1ec))+'\x20*/'],'\x20\x20'+h(_0x382e6e)];}function _(_0x2e1ab3,_0x26a4d9,_0x4798bc,_0x2fd660){const _0x5a9002=_0x64d2;let _0xa9495d=_0x26a4d9===_0x5a9002(0x18d)?[]:[_0x5a9002(0x1cc)+(_0x26a4d9===_0x5a9002(0x1d0)?_0x5a9002(0x1d0):_0x5a9002(0x1a2))+_0x5a9002(0x190)+_0x2e1ab3],_0x5eca8b=_0x26a4d9===_0x5a9002(0x18d)?_0x2fd660:_0x26a4d9===_0x5a9002(0x1d0)?_0x5a9002(0x1e5)+_0x2e1ab3:_0x5a9002(0x1a3)+_0x2e1ab3;return[..._0xa9495d,_0x5eca8b+'\x20{',..._0x4798bc[_0x5a9002(0x1f2)](g),'}'];}function v(_0x2df324){const _0x308500=_0x64d2;return typeof _0x2df324==_0x308500(0x1a6)?String(_0x2df324):JSON['stringify'](_0x2df324);}function y(_0x1ab009,_0x1959e8=!0x1){const _0x4d40e7=_0x64d2;let _0x3338dc=_0x1ab009[_0x4d40e7(0x208)]??(_0x1ab009[_0x4d40e7(0x1aa)]===void 0x0?void 0x0:{'description':_0x1ab009['summary'],'tags':[]}),_0x92a8f=_0x1ab009[_0x4d40e7(0x1dd)]['startsWith']('(')&&!_0x1ab009['type'][_0x4d40e7(0x1b9)]('=>')?'':':\x20',_0x1ddf93=_0x1ab009[_0x4d40e7(0x1a7)]??''+_0x1ab009['name']+(_0x1ab009[_0x4d40e7(0x1f6)]?'?':'')+_0x92a8f+_0x1ab009['type'];return[...m(_0x3338dc,'\x20\x20',!_0x1959e8),'\x20\x20'+_0x1ddf93+';'];}function b(_0x25ef26,_0x41e0b9=!0x1){const _0x5284e4=_0x64d2;let _0xc2c2b0=_0x25ef26[_0x5284e4(0x1cd)]??[],_0x1e42e1=[_0x5284e4(0x1ab)+_0x25ef26['packageName']+(_0xc2c2b0[_0x5284e4(0x1e9)]===0x0?'':';\x20runtime\x20aliases:\x20'+_0xc2c2b0['join'](',\x20')),...m(f(_0x25ef26))];if(_0x25ef26[_0x5284e4(0x1fb)]===_0x5284e4(0x1b7))return _0x1e42e1['push'](_0x5284e4(0x1bf)+(_0x25ef26['declaration']??_0x25ef26[_0x5284e4(0x1ca)])+'\x20{',...(_0x25ef26[_0x5284e4(0x1dc)]??[])[_0x5284e4(0x194)](_0x1a765a=>'\x20\x20'+_0x1a765a[_0x5284e4(0x1ca)]+'\x20=\x20'+v(_0x1a765a[_0x5284e4(0x1cf)])+','),'}'),_0x1e42e1[_0x5284e4(0x1f0)]('\x0a');if(_0x25ef26[_0x5284e4(0x1fb)]==='alias')return _0x1e42e1[_0x5284e4(0x192)](_0x5284e4(0x197)+(_0x25ef26[_0x5284e4(0x1a7)]??_0x25ef26['name']+_0x5284e4(0x1b4)+(_0x25ef26[_0x5284e4(0x1d2)]??'unknown'))+';'),_0x1e42e1[_0x5284e4(0x1f0)]('\x0a');let _0x5da7ab=_0x25ef26[_0x5284e4(0x1fe)]===void 0x0?'':'\x20extends\x20'+_0x25ef26['extends'];return _0x1e42e1[_0x5284e4(0x192)](_0x5284e4(0x1a3)+(_0x25ef26[_0x5284e4(0x1a7)]??''+_0x25ef26[_0x5284e4(0x1ca)]+_0x5da7ab)+'\x20{',...(_0x25ef26[_0x5284e4(0x1c5)]??[])[_0x5284e4(0x1f2)](_0x2fe30c=>y(_0x2fe30c,_0x41e0b9)),...(_0x25ef26[_0x5284e4(0x1c6)]??[])['map'](_0x112a23=>'\x20\x20'+_0x112a23+';'),'}'),_0x1e42e1[_0x5284e4(0x1f0)]('\x0a');}function x(_0x237c4e){const _0x3963f5=_0x64d2;return _0x237c4e[_0x3963f5(0x1e9)]===0x0?[]:['',_0x3963f5(0x1ac),..._0x237c4e['flatMap']((_0x89611a,_0x5877b4)=>[..._0x5877b4===0x0?[]:[''],b(_0x89611a)])];}function S(_0x43e950){const _0x448707=_0x64d2;if(_0x43e950[_0x448707(0x1af)]===_0x448707(0x1f9))return'';if(_0x43e950[_0x448707(0x1fb)]===_0x448707(0x1ff)){let _0x503ebf=_0x43e950[_0x448707(0x1c9)][_0x448707(0x1b2)]((_0x24fd97,_0xaf070f)=>_0x24fd97+_0xaf070f[_0x448707(0x1c5)][_0x448707(0x1e9)],0x0),_0x428f14=_0x43e950[_0x448707(0x1c9)][_0x448707(0x1f3)](_0x1e834a=>_0x1e834a['relation']===_0x448707(0x18d)),_0x48d75d=_0x43e950[_0x448707(0x1bc)]==='class'?_0x448707(0x1e5)+_0x43e950[_0x448707(0x1a7)]:_0x448707(0x197)+_0x43e950['declaration'],_0x2c8577=[_0x448707(0x1ab)+_0x43e950[_0x448707(0x1eb)]+';\x20'+_0x503ebf+_0x448707(0x19a),...m(_0x43e950[_0x448707(0x208)])];_0x43e950[_0x448707(0x1bc)]===_0x448707(0x1b8)?(_0x2c8577[_0x448707(0x192)](_0x48d75d+';'),_0x428f14!==void 0x0&&_0x2c8577['push']('',..._(_0x428f14[_0x448707(0x1e2)],_0x448707(0x18d),_0x428f14[_0x448707(0x1c5)],_0x448707(0x1a3)+_0x428f14[_0x448707(0x1e2)]))):_0x2c8577['push'](..._(_0x43e950[_0x448707(0x1ca)],_0x448707(0x18d),_0x428f14?.['members']??[],_0x48d75d));for(let _0x2588ca of _0x43e950[_0x448707(0x1c9)]['filter'](_0x22cab7=>_0x22cab7['relation']!==_0x448707(0x18d)))_0x2c8577[_0x448707(0x192)]('',..._(_0x2588ca[_0x448707(0x1e2)],_0x2588ca[_0x448707(0x19d)],_0x2588ca[_0x448707(0x1c5)],_0x48d75d));return _0x2c8577[_0x448707(0x192)]('',_0x448707(0x1c1)+_0x43e950[_0x448707(0x1ca)]+_0x448707(0x200)),_0x2c8577[_0x448707(0x1f0)]('\x0a');}if(_0x43e950[_0x448707(0x1fb)]==='member'){let [_0x245c3c]=_0x43e950[_0x448707(0x20a)];if(_0x245c3c===void 0x0)return'';let _0x27ecaf=_0x245c3c[_0x448707(0x19d)]===_0x448707(0x18d)?[]:[_0x448707(0x1cc)+_0x245c3c[_0x448707(0x19d)]+_0x448707(0x20b)+_0x245c3c[_0x448707(0x1d8)]];return['//\x20package:\x20'+_0x245c3c[_0x448707(0x195)][_0x448707(0x1eb)],..._0x27ecaf,_0x448707(0x1e5)+_0x43e950[_0x448707(0x1a0)]+'\x20{',..._0x43e950['entries'][_0x448707(0x1f2)](_0xd9a1f7=>[...m(d(_0xd9a1f7[_0x448707(0x195)]),'\x20\x20'),'\x20\x20'+h(_0xd9a1f7[_0x448707(0x195)])]),'}',...x([...new Map(_0x43e950[_0x448707(0x20a)][_0x448707(0x1f2)](_0x38efa0=>_0x38efa0[_0x448707(0x1d9)])[_0x448707(0x194)](_0x3427c6=>[_0x3427c6[_0x448707(0x1ca)],_0x3427c6]))[_0x448707(0x1dc)]()])][_0x448707(0x1f0)]('\x0a');}return _0x43e950[_0x448707(0x1fb)]==='type'?[b(_0x43e950[_0x448707(0x1dd)]),..._0x43e950['inherited'][_0x448707(0x1f2)](_0x59988f=>['',_0x448707(0x1ad)+_0x59988f[_0x448707(0x1ca)],b(_0x59988f)]),...x(_0x43e950[_0x448707(0x1d9)])][_0x448707(0x1f0)]('\x0a'):'value'in _0x43e950[_0x448707(0x195)]?'//\x20package:\x20'+_0x43e950[_0x448707(0x1b3)][_0x448707(0x1eb)]+_0x448707(0x1e7)+_0x43e950['declaredBy'][_0x448707(0x1ca)]+_0x448707(0x1fa)+_0x43e950['member'][_0x448707(0x1ca)]+'\x20=\x20'+v(_0x43e950[_0x448707(0x195)][_0x448707(0x1cf)])+',\x0a}':[_0x448707(0x1ab)+_0x43e950['declaredBy'][_0x448707(0x1eb)]+(_0x43e950[_0x448707(0x1b3)][_0x448707(0x1ca)]===_0x43e950[_0x448707(0x205)][_0x448707(0x1ca)]?'':_0x448707(0x1c8)+_0x43e950[_0x448707(0x1b3)][_0x448707(0x1ca)]),_0x448707(0x1a3)+_0x43e950[_0x448707(0x205)][_0x448707(0x1ca)]+'\x20{',...y(_0x43e950[_0x448707(0x195)],!0x0),'}',...x(_0x43e950[_0x448707(0x1d9)])][_0x448707(0x1f0)]('\x0a');}function C(_0x577195){const _0x48b1dd=_0x64d2;let _0x2045df=_0x577195[_0x48b1dd(0x1da)][_0x48b1dd(0x1e9)]===0x0?'':_0x48b1dd(0x1db)+(_0x577195['kind']==='member'?_0x48b1dd(0x1ae):'symbols')+':\x20'+_0x577195[_0x48b1dd(0x1da)][_0x48b1dd(0x1f0)](',\x20');return _0x577195['kind']==='member'?(_0x577195['owner']??_0x48b1dd(0x1f1))+_0x48b1dd(0x206)+(_0x577195[_0x48b1dd(0x195)]??_0x48b1dd(0x195))+_0x2045df+_0x48b1dd(0x1ce)+(_0x577195['owner']??_0x48b1dd(0x1e0)):_0x48b1dd(0x18e)+_0x577195[_0x48b1dd(0x1d7)]+_0x2045df+_0x48b1dd(0x1d1);}function w(_0x590757,_0x61a728){const _0x4afff7=_0x64d2;let _0x2c5a59=_0x590757['configureOutput'](),_0x4d61f=_0x61a728[_0x4afff7(0x1e1)](_0x1c6b67=>_0x1c6b67[_0x4afff7(0x1af)]==='found'),_0x1c3dc1=_0x61a728[_0x4afff7(0x1e1)](_0x440035=>_0x440035['status']==='not-found'),_0x39109f=_0x61a728[_0x4afff7(0x1e9)]>0x1;_0x4d61f[_0x4afff7(0x1e9)]>0x0&&_0x2c5a59['writeOut']?.(''+_0x4d61f[_0x4afff7(0x194)](_0x9aca=>_0x39109f?_0x4afff7(0x19e)+_0x9aca[_0x4afff7(0x1d7)]+'\x0a'+S(_0x9aca):S(_0x9aca))[_0x4afff7(0x1f0)]('\x0a\x0a')+(_0x39109f&&_0x1c3dc1[_0x4afff7(0x1e9)]===0x0?'\x0a\x0a//\x20batch:\x20'+_0x4d61f['length']+'\x20found,\x200\x20not\x20found':'')+'\x0a'),_0x1c3dc1[_0x4afff7(0x1e9)]>0x0&&_0x590757[_0x4afff7(0x1bb)]([..._0x1c3dc1[_0x4afff7(0x194)](_0x4f3cb3=>_0x39109f?_0x4afff7(0x20c)+_0x4f3cb3[_0x4afff7(0x1d7)]+'\x0a'+C(_0x4f3cb3):C(_0x4f3cb3)),..._0x39109f?['//\x20batch:\x20'+_0x4d61f['length']+_0x4afff7(0x1e8)+_0x1c3dc1[_0x4afff7(0x1e9)]+'\x20not\x20found']:[]]['join']('\x0a\x0a'),{'code':_0x4afff7(0x1a1),'exitCode':0x1});}function T(_0x140685){const _0x8df8f0=_0x64d2;let _0x2abe26=new _0x40a258('api')['description']('Offline\x20Univer\x20Facade\x20API\x20reference')[_0x8df8f0(0x1ea)](_0x8df8f0(0x1ef),_0x8df8f0(0x1f7))['action'](_0x4b9c58=>{const _0x405d03=_0x8df8f0;if(_0x4b9c58['length']===0x0){_0x2abe26['outputHelp']();return;}w(_0x2abe26,_0x140685[_0x405d03(0x1e6)][_0x405d03(0x1c7)](_0x4b9c58));});return _0x2abe26[_0x8df8f0(0x1b1)]('find')[_0x8df8f0(0x1be)]('Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword')['argument'](_0x8df8f0(0x1d6),'one\x20or\x20more\x20terms,\x20searched\x20independently')[_0x8df8f0(0x18f)](new _0x5e5dbb(_0x8df8f0(0x1b6),_0x8df8f0(0x201))['choices'](_0x5be44e))[_0x8df8f0(0x1f5)]((_0x1a6097,_0x5cb80e)=>{const _0x4fa5cc=_0x8df8f0;let _0x2c22ac=_0x140685[_0x4fa5cc(0x1e6)][_0x4fa5cc(0x1f3)]({'terms':_0x1a6097,..._0x5cb80e[_0x4fa5cc(0x209)]===void 0x0?{}:{'unit':_0x5cb80e[_0x4fa5cc(0x209)]}});_0x2abe26[_0x4fa5cc(0x196)]()[_0x4fa5cc(0x1ba)]?.(l(_0x2c22ac,_0x5cb80e[_0x4fa5cc(0x209)])+'\x0a');}),_0x2abe26[_0x8df8f0(0x1b1)](_0x8df8f0(0x1c7))[_0x8df8f0(0x1be)]('Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values')[_0x8df8f0(0x1ea)](_0x8df8f0(0x199),_0x8df8f0(0x1fd))['action'](_0x1f72dc=>{const _0x52d72c=_0x8df8f0;w(_0x2abe26,_0x140685[_0x52d72c(0x1e6)][_0x52d72c(0x1c7)](_0x1f72dc));}),_0x2abe26;}export{T as createApiCommand};
|
|
1
|
+
(function(_0x220dbc,_0x22e542){const _0x1f13e4=_0x5e01,_0x54b4f1=_0x220dbc();while(!![]){try{const _0x2c648c=parseInt(_0x1f13e4(0x174))/0x1*(parseInt(_0x1f13e4(0x19b))/0x2)+-parseInt(_0x1f13e4(0x13c))/0x3*(parseInt(_0x1f13e4(0x159))/0x4)+parseInt(_0x1f13e4(0x186))/0x5+parseInt(_0x1f13e4(0x14d))/0x6*(-parseInt(_0x1f13e4(0x158))/0x7)+-parseInt(_0x1f13e4(0x139))/0x8+parseInt(_0x1f13e4(0x191))/0x9*(parseInt(_0x1f13e4(0x153))/0xa)+parseInt(_0x1f13e4(0x152))/0xb*(parseInt(_0x1f13e4(0x155))/0xc);if(_0x2c648c===_0x22e542)break;else _0x54b4f1['push'](_0x54b4f1['shift']());}catch(_0x4b247c){_0x54b4f1['push'](_0x54b4f1['shift']());}}}(_0x31fe,0xcc93b));import{API_REFERENCE_UNITS as _0x4b833a}from'@univer-cli/api-reference';import{Command as _0x5857f0,Option as _0x164b49}from'commander';var r=0x48,i=0x5a;function a(_0xdedde){const _0x2d7a25=_0x5e01;return(_0xdedde[_0x2d7a25(0x17f)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0xdedde)[_0x2d7a25(0x15e)]();}function o(_0x586e37,_0x52bbe5){const _0x4fb96d=_0x5e01;return _0x586e37['length']>_0x52bbe5?_0x586e37[_0x4fb96d(0x16a)](0x0,_0x52bbe5-0x1)+'…':_0x586e37;}function s(_0x2939d4){const _0x1e0284=_0x5e01;let _0x33a6b9=_0x2939d4[_0x1e0284(0x183)]===''?'':_0x1e0284(0x12f)+a(_0x2939d4[_0x1e0284(0x183)]);return'['+_0x2939d4[_0x1e0284(0x14b)]+']\x20'+o(_0x2939d4[_0x1e0284(0x15f)],r)+o(_0x33a6b9,i)+_0x1e0284(0x154)+_0x2939d4['packageName']+']';}function c(_0x3eadda,_0x284bb7){const _0x2b12be=_0x5e01;if(_0x3eadda[_0x2b12be(0x17e)][_0x2b12be(0x190)]===0x0){let _0x47a1ff=_0x284bb7===void 0x0?'':_0x2b12be(0x196)+_0x284bb7+')';return _0x2b12be(0x133)+_0x3eadda[_0x2b12be(0x125)]+'\x22'+_0x47a1ff+_0x2b12be(0x138)+(_0x284bb7===void 0x0?'':_0x2b12be(0x189))+_0x2b12be(0x1a1);}let _0x1429d1=_0x3eadda[_0x2b12be(0x17e)][_0x2b12be(0x148)](s),_0x4b818d=_0x3eadda[_0x2b12be(0x123)]-_0x3eadda[_0x2b12be(0x17e)][_0x2b12be(0x190)];return _0x4b818d>0x0&&_0x1429d1[_0x2b12be(0x182)]('…\x20'+_0x4b818d+_0x2b12be(0x145)),_0x1429d1['join']('\x0a');}function _0x31fe(){const _0x4f201f=['[symbols...]','definition','example','\x20*/','relationOwner','Offline\x20Univer\x20Facade\x20API\x20reference','\x20\x20—\x20','tags','unit','<Class>','No\x20API\x20matches\x20\x22','\x20{\x0a\x20\x20','packageName','found','inherited','.\x20Try\x20a\x20shorter\x20substring','9366696qIoxwU','\x20\x20/**\x20','number','869181lLQpfk','pop','══\x20',';\x20runtime\x20aliases:\x20','//\x20inherited\x20declaration\x20from\x20','value','\x20has\x20no\x20','//\x20','stringify','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','\x20=\x20','declaration','map','unknown','class','kind','\x0a\x0a//\x20batch:\x20','106422TzonCB','declare\x20enum\x20','reduce','Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values','error','11xmVoVI','1910QGXLrH','\x20\x20[','5175396HJupSt','argument','suggestions','42qBjGLO','8LfkzPT','<terms...>','*\x5c/','--unit\x20<unit>','target','trim','signature','declarationKind','split','\x20member\x20projection\x20from\x20','\x20extends\x20','documentation','```','\x0a\x20\x20List\x20all:\x20api\x20show\x20','\x20from\x20','declaredBy','\x20══\x0a','slice','readonly','groups','symbols','join','status','show','Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword','find','own','4854uEtuJU','replaceAll','\x0a\x20\x20Similar\x20','aliases','extends','//\x20batch:\x20','\x20supported\x20members',',\x0a}','\x20not\x20found','/**','matches','match','addOption','relation','push','summary','reference','subject','3006235XKVgQl','writeOut','text',',\x20drop\x20--unit','description','every','startsWith','interface\x20','enum',';\x20inherited\x20from\x20','length','3528NLLXdu','action','type','\x0adeclare\x20enum\x20','//\x20package:\x20','\x20(filtered\x20by\x20--unit\x20','includes','entries','methods','outputHelp','654PBINMv','readonly\x20','configureOutput','members','type\x20','not-found',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','appendix','command','filter','alias','flatMap','member','api.reference.not-found','//\x20directly\x20referenced\x20types','declare\x20class\x20','owner','Unknown\x20symbol:\x20','\x20found,\x200\x20not\x20found','totalMatches','.<member>','term','signatures','requestedType','name'];_0x31fe=function(){return _0x4f201f;};return _0x31fe();}function l(_0x43fde0,_0x218fc9){const _0x49aff8=_0x5e01;return _0x43fde0[_0x49aff8(0x148)](_0x297a81=>{const _0x5535aa=_0x49aff8;let _0x162ed8=c(_0x297a81,_0x218fc9);return _0x43fde0[_0x5535aa(0x190)]>0x1?_0x5535aa(0x13e)+_0x297a81[_0x5535aa(0x125)]+_0x5535aa(0x169)+_0x162ed8:_0x162ed8;})['join']('\x0a\x0a');}function u(_0x566e30){const _0x48c8a4=_0x5e01;return _0x566e30[_0x48c8a4(0x161)](/\n\s*\n/u,0x1)[0x0]?.['trim']()??'';}function d(_0x37ddd5){const _0x10ae01=_0x5e01;return _0x37ddd5[_0x10ae01(0x164)]===void 0x0?{'description':_0x37ddd5[_0x10ae01(0x183)],'tags':_0x37ddd5['example']===''?[]:[{'name':_0x10ae01(0x12b),'text':_0x37ddd5[_0x10ae01(0x12b)]}]}:_0x37ddd5[_0x10ae01(0x164)];}function f(_0x39a1b2){const _0x3542d0=_0x5e01;return _0x39a1b2['documentation']??{'description':_0x39a1b2[_0x3542d0(0x183)],'tags':[]};}function p(_0xcf9791){const _0x510fa9=_0x5e01;let _0x557dd7=_0xcf9791[_0x510fa9(0x193)]===void 0x0?'':'\x20{'+_0xcf9791[_0x510fa9(0x193)]+'}',_0x2c5e4f=_0xcf9791['subject']===void 0x0?'':'\x20'+_0xcf9791[_0x510fa9(0x185)],[_0x32ca38='',..._0x203cbf]=_0xcf9791[_0x510fa9(0x188)]===''?[]:_0xcf9791[_0x510fa9(0x188)][_0x510fa9(0x161)]('\x0a');return _0xcf9791[_0x510fa9(0x128)]===_0x510fa9(0x12b)&&_0x32ca38['trimStart']()[_0x510fa9(0x18c)](_0x510fa9(0x165))?['@'+_0xcf9791[_0x510fa9(0x128)]+_0x557dd7+_0x2c5e4f,_0x32ca38,..._0x203cbf]:['@'+_0xcf9791['name']+_0x557dd7+_0x2c5e4f+(_0x32ca38===''?'':'\x20'+_0x32ca38),..._0x203cbf];}function _0x5e01(_0x279dba,_0xceb8d7){_0x279dba=_0x279dba-0x122;const _0x31fea4=_0x31fe();let _0x5e0114=_0x31fea4[_0x279dba];return _0x5e0114;}function m(_0x50ea19,_0x2e82cb='',_0x3ec60c=!0x1){const _0x4b67d2=_0x5e01;if(_0x50ea19===void 0x0)return[];let _0x45d99b=_0x3ec60c?u(_0x50ea19['description']):_0x50ea19[_0x4b67d2(0x18a)],_0x552e86=_0x50ea19[_0x4b67d2(0x130)]['flatMap'](p),_0x677d17=[..._0x45d99b[_0x4b67d2(0x161)]('\x0a'),..._0x3ec60c||_0x552e86[_0x4b67d2(0x190)]===0x0?[]:['',..._0x552e86]];for(;_0x677d17['at'](-0x1)==='';)_0x677d17[_0x4b67d2(0x13d)]();return _0x677d17[_0x4b67d2(0x18b)](_0x4aa1b5=>_0x4aa1b5==='')?[]:[_0x2e82cb+_0x4b67d2(0x17d),..._0x677d17[_0x4b67d2(0x148)](_0x16cede=>_0x2e82cb+'\x20*'+(_0x16cede===''?'':'\x20'+_0x16cede)),_0x2e82cb+_0x4b67d2(0x12c)];}function h(_0x1572b9){const _0xb0724=_0x5e01;return''+((_0x1572b9[_0xb0724(0x14b)]==='getter'||_0x1572b9[_0xb0724(0x16b)])&&!_0x1572b9[_0xb0724(0x15f)]['startsWith'](_0xb0724(0x19c))?_0xb0724(0x19c):'')+_0x1572b9[_0xb0724(0x15f)]+';';}function g(_0x131098){const _0x327a81=_0x5e01;let _0x1b2ffa=_0x131098[_0x327a81(0x183)]['trim']();return[..._0x1b2ffa===''?[]:[_0x327a81(0x13a)+_0x1b2ffa[_0x327a81(0x175)]('*/',_0x327a81(0x15b))+_0x327a81(0x12c)],'\x20\x20'+h(_0x131098)];}function _(_0x58f4dd,_0x11959a,_0x12a8f6,_0x4a1088){const _0x47edce=_0x5e01;let _0x3614e6=_0x11959a===_0x47edce(0x173)?[]:[_0x47edce(0x143)+(_0x11959a===_0x47edce(0x137)?_0x47edce(0x137):'composed')+_0x47edce(0x162)+_0x58f4dd],_0x6969b4=_0x11959a===_0x47edce(0x173)?_0x4a1088:_0x11959a==='inherited'?_0x47edce(0x1aa)+_0x58f4dd:_0x47edce(0x18d)+_0x58f4dd;return[..._0x3614e6,_0x6969b4+'\x20{',..._0x12a8f6[_0x47edce(0x1a6)](g),'}'];}function v(_0x3dbbd2){const _0x4655f8=_0x5e01;return typeof _0x3dbbd2==_0x4655f8(0x13b)?String(_0x3dbbd2):JSON[_0x4655f8(0x144)](_0x3dbbd2);}function y(_0x2324cd,_0x46a172=!0x1){const _0x5b0952=_0x5e01;let _0x1d72f1=_0x2324cd[_0x5b0952(0x164)]??(_0x2324cd[_0x5b0952(0x183)]===void 0x0?void 0x0:{'description':_0x2324cd[_0x5b0952(0x183)],'tags':[]}),_0x66f068=_0x2324cd[_0x5b0952(0x193)][_0x5b0952(0x18c)]('(')&&!_0x2324cd[_0x5b0952(0x193)][_0x5b0952(0x197)]('=>')?'':':\x20',_0xb6fc63=_0x2324cd['declaration']??''+_0x2324cd[_0x5b0952(0x128)]+(_0x2324cd['optional']?'?':'')+_0x66f068+_0x2324cd[_0x5b0952(0x193)];return[...m(_0x1d72f1,'\x20\x20',!_0x46a172),'\x20\x20'+_0xb6fc63+';'];}function b(_0x15e576,_0x76af66=!0x1){const _0x1382a3=_0x5e01;let _0x20ef36=_0x15e576[_0x1382a3(0x177)]??[],_0x389769=[_0x1382a3(0x195)+_0x15e576[_0x1382a3(0x135)]+(_0x20ef36[_0x1382a3(0x190)]===0x0?'':_0x1382a3(0x13f)+_0x20ef36['join'](',\x20')),...m(f(_0x15e576))];if(_0x15e576[_0x1382a3(0x14b)]===_0x1382a3(0x18e))return _0x389769[_0x1382a3(0x182)](_0x1382a3(0x14e)+(_0x15e576[_0x1382a3(0x147)]??_0x15e576[_0x1382a3(0x128)])+'\x20{',...(_0x15e576['values']??[])[_0x1382a3(0x148)](_0x552556=>'\x20\x20'+_0x552556[_0x1382a3(0x128)]+_0x1382a3(0x146)+v(_0x552556['value'])+','),'}'),_0x389769[_0x1382a3(0x16e)]('\x0a');if(_0x15e576[_0x1382a3(0x14b)]==='alias')return _0x389769[_0x1382a3(0x182)](_0x1382a3(0x19f)+(_0x15e576[_0x1382a3(0x147)]??_0x15e576[_0x1382a3(0x128)]+_0x1382a3(0x146)+(_0x15e576[_0x1382a3(0x12a)]??_0x1382a3(0x149)))+';'),_0x389769['join']('\x0a');let _0x4c4c74=_0x15e576[_0x1382a3(0x178)]===void 0x0?'':_0x1382a3(0x163)+_0x15e576[_0x1382a3(0x178)];return _0x389769[_0x1382a3(0x182)](_0x1382a3(0x18d)+(_0x15e576['declaration']??''+_0x15e576[_0x1382a3(0x128)]+_0x4c4c74)+'\x20{',...(_0x15e576['members']??[])[_0x1382a3(0x1a6)](_0x27a6ca=>y(_0x27a6ca,_0x76af66)),...(_0x15e576[_0x1382a3(0x126)]??[])[_0x1382a3(0x148)](_0x5c0279=>'\x20\x20'+_0x5c0279+';'),'}'),_0x389769[_0x1382a3(0x16e)]('\x0a');}function x(_0x12c7b5){const _0x312b07=_0x5e01;return _0x12c7b5[_0x312b07(0x190)]===0x0?[]:['',_0x312b07(0x1a9),..._0x12c7b5['flatMap']((_0x50342f,_0x48cdae)=>[..._0x48cdae===0x0?[]:[''],b(_0x50342f)])];}function S(_0x2d48a6){const _0x2917d7=_0x5e01;if(_0x2d48a6[_0x2917d7(0x16f)]===_0x2917d7(0x1a0))return'';if(_0x2d48a6[_0x2917d7(0x14b)]===_0x2917d7(0x14a)){let _0x3d3783=_0x2d48a6[_0x2917d7(0x16c)][_0x2917d7(0x14f)]((_0xd5808f,_0xeca093)=>_0xd5808f+_0xeca093[_0x2917d7(0x19e)]['length'],0x0),_0x2e6411=_0x2d48a6[_0x2917d7(0x16c)]['find'](_0x11f4d3=>_0x11f4d3['relation']===_0x2917d7(0x173)),_0x250fc2=_0x2d48a6[_0x2917d7(0x160)]==='class'?_0x2917d7(0x1aa)+_0x2d48a6[_0x2917d7(0x147)]:_0x2917d7(0x19f)+_0x2d48a6['declaration'],_0x15f3a0=['//\x20package:\x20'+_0x2d48a6[_0x2917d7(0x135)]+';\x20'+_0x3d3783+_0x2917d7(0x17a),...m(_0x2d48a6['documentation'])];_0x2d48a6[_0x2917d7(0x160)]===_0x2917d7(0x1a5)?(_0x15f3a0[_0x2917d7(0x182)](_0x250fc2+';'),_0x2e6411!==void 0x0&&_0x15f3a0[_0x2917d7(0x182)]('',..._(_0x2e6411[_0x2917d7(0x1ab)],_0x2917d7(0x173),_0x2e6411[_0x2917d7(0x19e)],_0x2917d7(0x18d)+_0x2e6411[_0x2917d7(0x1ab)]))):_0x15f3a0['push'](..._(_0x2d48a6[_0x2917d7(0x128)],_0x2917d7(0x173),_0x2e6411?.[_0x2917d7(0x19e)]??[],_0x250fc2));for(let _0x4104b5 of _0x2d48a6[_0x2917d7(0x16c)]['filter'](_0x48e615=>_0x48e615[_0x2917d7(0x181)]!==_0x2917d7(0x173)))_0x15f3a0['push']('',..._(_0x4104b5['owner'],_0x4104b5[_0x2917d7(0x181)],_0x4104b5[_0x2917d7(0x19e)],_0x250fc2));return _0x15f3a0[_0x2917d7(0x182)]('','//\x20full\x20member\x20docs:\x20api\x20show\x20'+_0x2d48a6[_0x2917d7(0x128)]+_0x2917d7(0x124)),_0x15f3a0[_0x2917d7(0x16e)]('\x0a');}if(_0x2d48a6['kind']===_0x2917d7(0x1a7)){let [_0x2a1384]=_0x2d48a6[_0x2917d7(0x198)];if(_0x2a1384===void 0x0)return'';let _0x15b006=_0x2a1384[_0x2917d7(0x181)]===_0x2917d7(0x173)?[]:[_0x2917d7(0x143)+_0x2a1384['relation']+_0x2917d7(0x167)+_0x2a1384[_0x2917d7(0x12d)]];return[_0x2917d7(0x195)+_0x2a1384[_0x2917d7(0x1a7)][_0x2917d7(0x135)],..._0x15b006,_0x2917d7(0x1aa)+_0x2d48a6[_0x2917d7(0x15d)]+'\x20{',..._0x2d48a6[_0x2917d7(0x198)][_0x2917d7(0x1a6)](_0x249626=>[...m(d(_0x249626[_0x2917d7(0x1a7)]),'\x20\x20'),'\x20\x20'+h(_0x249626['member'])]),'}',...x([...new Map(_0x2d48a6[_0x2917d7(0x198)]['flatMap'](_0x34c26f=>_0x34c26f[_0x2917d7(0x1a2)])[_0x2917d7(0x148)](_0x13654c=>[_0x13654c['name'],_0x13654c]))['values']()])]['join']('\x0a');}return _0x2d48a6[_0x2917d7(0x14b)]===_0x2917d7(0x193)?[b(_0x2d48a6[_0x2917d7(0x193)]),..._0x2d48a6[_0x2917d7(0x137)]['flatMap'](_0x2d1f7a=>['',_0x2917d7(0x140)+_0x2d1f7a[_0x2917d7(0x128)],b(_0x2d1f7a)]),...x(_0x2d48a6[_0x2917d7(0x1a2)])]['join']('\x0a'):_0x2917d7(0x141)in _0x2d48a6[_0x2917d7(0x1a7)]?_0x2917d7(0x195)+_0x2d48a6[_0x2917d7(0x168)]['packageName']+_0x2917d7(0x194)+_0x2d48a6[_0x2917d7(0x168)][_0x2917d7(0x128)]+_0x2917d7(0x134)+_0x2d48a6[_0x2917d7(0x1a7)][_0x2917d7(0x128)]+_0x2917d7(0x146)+v(_0x2d48a6[_0x2917d7(0x1a7)][_0x2917d7(0x141)])+_0x2917d7(0x17b):[_0x2917d7(0x195)+_0x2d48a6[_0x2917d7(0x168)][_0x2917d7(0x135)]+(_0x2d48a6['declaredBy'][_0x2917d7(0x128)]===_0x2d48a6[_0x2917d7(0x127)][_0x2917d7(0x128)]?'':_0x2917d7(0x18f)+_0x2d48a6[_0x2917d7(0x168)]['name']),'interface\x20'+_0x2d48a6[_0x2917d7(0x127)]['name']+'\x20{',...y(_0x2d48a6[_0x2917d7(0x1a7)],!0x0),'}',...x(_0x2d48a6[_0x2917d7(0x1a2)])][_0x2917d7(0x16e)]('\x0a');}function C(_0x538fc7){const _0x4aa44c=_0x5e01;let _0x32ab74=_0x538fc7[_0x4aa44c(0x157)]['length']===0x0?'':_0x4aa44c(0x176)+(_0x538fc7[_0x4aa44c(0x14b)]==='member'?_0x4aa44c(0x199):_0x4aa44c(0x16d))+':\x20'+_0x538fc7[_0x4aa44c(0x157)][_0x4aa44c(0x16e)](',\x20');return _0x538fc7[_0x4aa44c(0x14b)]===_0x4aa44c(0x1a7)?(_0x538fc7[_0x4aa44c(0x1ab)]??'Symbol')+_0x4aa44c(0x142)+(_0x538fc7[_0x4aa44c(0x1a7)]??'member')+_0x32ab74+_0x4aa44c(0x166)+(_0x538fc7[_0x4aa44c(0x1ab)]??_0x4aa44c(0x132)):_0x4aa44c(0x1ac)+_0x538fc7['query']+_0x32ab74+'\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.';}function w(_0x5d28ce,_0x305034){const _0x5e2b1e=_0x5e01;let _0x24ddfc=_0x5d28ce[_0x5e2b1e(0x19d)](),_0x20a481=_0x305034[_0x5e2b1e(0x1a4)](_0x533bb9=>_0x533bb9[_0x5e2b1e(0x16f)]===_0x5e2b1e(0x136)),_0x307508=_0x305034[_0x5e2b1e(0x1a4)](_0x13a35c=>_0x13a35c['status']===_0x5e2b1e(0x1a0)),_0x22f86d=_0x305034['length']>0x1;_0x20a481[_0x5e2b1e(0x190)]>0x0&&_0x24ddfc[_0x5e2b1e(0x187)]?.(''+_0x20a481[_0x5e2b1e(0x148)](_0x4f8b8a=>_0x22f86d?'//\x20[found]\x20'+_0x4f8b8a['query']+'\x0a'+S(_0x4f8b8a):S(_0x4f8b8a))['join']('\x0a\x0a')+(_0x22f86d&&_0x307508['length']===0x0?_0x5e2b1e(0x14c)+_0x20a481[_0x5e2b1e(0x190)]+_0x5e2b1e(0x122):'')+'\x0a'),_0x307508['length']>0x0&&_0x5d28ce[_0x5e2b1e(0x151)]([..._0x307508[_0x5e2b1e(0x148)](_0x6bbc2e=>_0x22f86d?'//\x20[not-found]\x20'+_0x6bbc2e['query']+'\x0a'+C(_0x6bbc2e):C(_0x6bbc2e)),..._0x22f86d?[_0x5e2b1e(0x179)+_0x20a481[_0x5e2b1e(0x190)]+'\x20found,\x20'+_0x307508[_0x5e2b1e(0x190)]+_0x5e2b1e(0x17c)]:[]]['join']('\x0a\x0a'),{'code':_0x5e2b1e(0x1a8),'exitCode':0x1});}function T(_0x3acd0a){const _0x1438a7=_0x5e01;let _0x363097=new _0x5857f0('api')['description'](_0x1438a7(0x12e))[_0x1438a7(0x156)](_0x1438a7(0x129),'exact\x20symbols;\x20shorthand\x20for\x20api\x20show')[_0x1438a7(0x192)](_0x271a5c=>{const _0x18ffec=_0x1438a7;if(_0x271a5c[_0x18ffec(0x190)]===0x0){_0x363097[_0x18ffec(0x19a)]();return;}w(_0x363097,_0x3acd0a[_0x18ffec(0x184)]['show'](_0x271a5c));});return _0x363097[_0x1438a7(0x1a3)](_0x1438a7(0x172))[_0x1438a7(0x18a)](_0x1438a7(0x171))['argument'](_0x1438a7(0x15a),'one\x20or\x20more\x20terms,\x20searched\x20independently')[_0x1438a7(0x180)](new _0x164b49(_0x1438a7(0x15c),'limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs')['choices'](_0x4b833a))[_0x1438a7(0x192)]((_0x199735,_0x5878b4)=>{const _0x45dd47=_0x1438a7;let _0x3b10d6=_0x3acd0a[_0x45dd47(0x184)][_0x45dd47(0x172)]({'terms':_0x199735,..._0x5878b4[_0x45dd47(0x131)]===void 0x0?{}:{'unit':_0x5878b4[_0x45dd47(0x131)]}});_0x363097['configureOutput']()[_0x45dd47(0x187)]?.(l(_0x3b10d6,_0x5878b4[_0x45dd47(0x131)])+'\x0a');}),_0x363097['command'](_0x1438a7(0x170))[_0x1438a7(0x18a)](_0x1438a7(0x150))[_0x1438a7(0x156)]('<symbols...>','one\x20or\x20more\x20exact\x20API\x20symbols')[_0x1438a7(0x192)](_0x359c61=>{const _0x4507bb=_0x1438a7;w(_0x363097,_0x3acd0a['reference'][_0x4507bb(0x170)](_0x359c61));}),_0x363097;}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.
|
|
4
|
+
"version": "1.7.0-alpha.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/api-reference": "1.
|
|
21
|
+
"@univer-cli/api-reference": "1.7.0-alpha.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|