@univer-cli/api-reference-command 1.0.0-rc.0 → 1.0.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(_0x46cd37,_0x2aa5d6){const _0x4c4ca5=_0x3e3a,_0x3f86b9=_0x46cd37();while(!![]){try{const _0xe79d88=parseInt(_0x4c4ca5(0x210))/0x1*(-parseInt(_0x4c4ca5(0x22e))/0x2)+-parseInt(_0x4c4ca5(0x243))/0x3+-parseInt(_0x4c4ca5(0x258))/0x4+parseInt(_0x4c4ca5(0x242))/0x5+parseInt(_0x4c4ca5(0x22c))/0x6+-parseInt(_0x4c4ca5(0x265))/0x7*(-parseInt(_0x4c4ca5(0x223))/0x8)+-parseInt(_0x4c4ca5(0x229))/0x9*(-parseInt(_0x4c4ca5(0x23f))/0xa);if(_0xe79d88===_0x2aa5d6)break;else _0x3f86b9['push'](_0x3f86b9['shift']());}catch(_0x3e17a2){_0x3f86b9['push'](_0x3f86b9['shift']());}}}(_0x3d68,0xcbf1f));function _0x3e3a(_0x492d2b,_0x1e6cee){_0x492d2b=_0x492d2b-0x1f1;const _0x3d6893=_0x3d68();let _0x3e3a7e=_0x3d6893[_0x492d2b];return _0x3e3a7e;}import{API_REFERENCE_UNITS as _0x1432f8}from'@univer-cli/api-reference';import{Command as _0x273d70,Option as _0x29ab34}from'commander';var r=0x48,i=0x5a;function a(_0x48435c){const _0x207766=_0x3e3a;return(_0x48435c[_0x207766(0x23c)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x48435c)[_0x207766(0x22d)]();}function _0x3d68(){const _0xbe360=['8467260bjajiA','trim','8mOKdMc','alias','writeOut','```','packageName','own','unknown','relation','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','query','values','\x20=\x20','\x20\x20—\x20','groups','match','status','declare\x20enum\x20','20ZfvATn','unit','//\x20[found]\x20','1501325ZnNRrs','4970373FoXBYt','replaceAll','══\x20','choices','matches','\x20member\x20projection\x20from\x20','<Class>','[symbols...]','one\x20or\x20more\x20terms,\x20searched\x20independently','argument','//\x20','subject','value','//\x20inherited\x20declaration\x20from\x20','requestedType','outputHelp','api.reference.not-found','map','enum','<terms...>','every','813604WCHfWj','readonly\x20','find','\x0adeclare\x20enum\x20','Offline\x20Univer\x20Facade\x20API\x20reference','\x20*/','owner','flatMap','\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.','not-found','totalMatches','summary','\x20supported\x20members','10738xZOkoN','filter','includes','trimStart','\x20has\x20no\x20','term',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','type','Unknown\x20symbol:\x20','\x20══\x0a','declarationKind','target','\x0a\x20\x20List\x20all:\x20api\x20show\x20','documentation','members','found','*\x5c/',',\x0a}','definition','suggestions','class','\x20from\x20','<symbols...>','number','symbols','composed','member','api','//\x20full\x20member\x20docs:\x20api\x20show\x20','slice','inherited','declare\x20class\x20','signature','\x20extends\x20','reference','\x20found,\x200\x20not\x20found','startsWith','tags','\x20\x20/**\x20','show','entries','split','aliases','No\x20API\x20matches\x20\x22','pop','interface\x20','configureOutput','370013OSPuHq','getter','appendix','declaredBy','extends','type\x20','//\x20package:\x20','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs',';\x20runtime\x20aliases:\x20','declaration','name','command','kind','readonly','description','.\x20Try\x20a\x20shorter\x20substring','length','join','example','6688wLRQWT','\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.','\x0a\x20\x20Similar\x20','push','/**','optional','5317668Kswram','action','Symbol'];_0x3d68=function(){return _0xbe360;};return _0x3d68();}function o(_0x240d90,_0x3699a6){const _0x5eda90=_0x3e3a;return _0x240d90[_0x5eda90(0x220)]>_0x3699a6?_0x240d90[_0x5eda90(0x1fe)](0x0,_0x3699a6-0x1)+'…':_0x240d90;}function s(_0x53ed6f){const _0x14e4f3=_0x3e3a;let _0x3fd7b0=_0x53ed6f[_0x14e4f3(0x263)]===''?'':_0x14e4f3(0x23a)+a(_0x53ed6f[_0x14e4f3(0x263)]);return'['+_0x53ed6f['kind']+']\x20'+o(_0x53ed6f['signature'],r)+o(_0x3fd7b0,i)+'\x20\x20['+_0x53ed6f[_0x14e4f3(0x232)]+']';}function c(_0x4025ad,_0x43f1b8){const _0x4baed2=_0x3e3a;if(_0x4025ad[_0x4baed2(0x247)][_0x4baed2(0x220)]===0x0){let _0x4d75b8=_0x43f1b8===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0x43f1b8+')';return _0x4baed2(0x20c)+_0x4025ad[_0x4baed2(0x26a)]+'\x22'+_0x4d75b8+_0x4baed2(0x21f)+(_0x43f1b8===void 0x0?'':',\x20drop\x20--unit')+_0x4baed2(0x26b);}let _0x5120ef=_0x4025ad[_0x4baed2(0x247)][_0x4baed2(0x254)](s),_0x2a2e3d=_0x4025ad[_0x4baed2(0x262)]-_0x4025ad[_0x4baed2(0x247)][_0x4baed2(0x220)];return _0x2a2e3d>0x0&&_0x5120ef[_0x4baed2(0x226)]('…\x20'+_0x2a2e3d+_0x4baed2(0x224)),_0x5120ef['join']('\x0a');}function l(_0x5793b1,_0x44f5d3){const _0x5a0a04=_0x3e3a;return _0x5793b1[_0x5a0a04(0x254)](_0x116f52=>{const _0x4ae94e=_0x5a0a04;let _0x236fb4=c(_0x116f52,_0x44f5d3);return _0x5793b1[_0x4ae94e(0x220)]>0x1?_0x4ae94e(0x245)+_0x116f52[_0x4ae94e(0x26a)]+_0x4ae94e(0x26e)+_0x236fb4:_0x236fb4;})[_0x5a0a04(0x221)]('\x0a\x0a');}function u(_0x223aa8){const _0x446a7a=_0x3e3a;return _0x223aa8[_0x446a7a(0x20a)](/\n\s*\n/u,0x1)[0x0]?.[_0x446a7a(0x22d)]()??'';}function d(_0x293421){const _0x12fdcc=_0x3e3a;return _0x293421['documentation']===void 0x0?{'description':_0x293421[_0x12fdcc(0x263)],'tags':_0x293421['example']===''?[]:[{'name':_0x12fdcc(0x222),'text':_0x293421['example']}]}:_0x293421[_0x12fdcc(0x272)];}function f(_0x5eca85){const _0x447488=_0x3e3a;return _0x5eca85[_0x447488(0x272)]??{'description':_0x5eca85[_0x447488(0x263)],'tags':[]};}function p(_0x8e03ba){const _0x1be797=_0x3e3a;let _0x52ae44=_0x8e03ba['type']===void 0x0?'':'\x20{'+_0x8e03ba[_0x1be797(0x26c)]+'}',_0x10e4e6=_0x8e03ba[_0x1be797(0x24e)]===void 0x0?'':'\x20'+_0x8e03ba[_0x1be797(0x24e)],[_0xae59b3='',..._0xc08f58]=_0x8e03ba['text']===''?[]:_0x8e03ba['text'][_0x1be797(0x20a)]('\x0a');return _0x8e03ba['name']===_0x1be797(0x222)&&_0xae59b3[_0x1be797(0x268)]()[_0x1be797(0x205)](_0x1be797(0x231))?['@'+_0x8e03ba[_0x1be797(0x21a)]+_0x52ae44+_0x10e4e6,_0xae59b3,..._0xc08f58]:['@'+_0x8e03ba[_0x1be797(0x21a)]+_0x52ae44+_0x10e4e6+(_0xae59b3===''?'':'\x20'+_0xae59b3),..._0xc08f58];}function m(_0x2747b0,_0x56a3d9='',_0x492907=!0x1){const _0x4a59f7=_0x3e3a;if(_0x2747b0===void 0x0)return[];let _0x498d68=_0x492907?u(_0x2747b0[_0x4a59f7(0x21e)]):_0x2747b0['description'],_0x537a90=_0x2747b0[_0x4a59f7(0x206)][_0x4a59f7(0x25f)](p),_0x161049=[..._0x498d68[_0x4a59f7(0x20a)]('\x0a'),..._0x492907||_0x537a90[_0x4a59f7(0x220)]===0x0?[]:['',..._0x537a90]];for(;_0x161049['at'](-0x1)==='';)_0x161049[_0x4a59f7(0x20d)]();return _0x161049[_0x4a59f7(0x257)](_0x42d29f=>_0x42d29f==='')?[]:[_0x56a3d9+_0x4a59f7(0x227),..._0x161049[_0x4a59f7(0x254)](_0xa4c182=>_0x56a3d9+'\x20*'+(_0xa4c182===''?'':'\x20'+_0xa4c182)),_0x56a3d9+_0x4a59f7(0x25d)];}function h(_0x43593d){const _0x35ce35=_0x3e3a;return''+((_0x43593d[_0x35ce35(0x21c)]===_0x35ce35(0x211)||_0x43593d[_0x35ce35(0x21d)])&&!_0x43593d[_0x35ce35(0x201)][_0x35ce35(0x205)](_0x35ce35(0x259))?_0x35ce35(0x259):'')+_0x43593d['signature']+';';}function g(_0x3aa7f6){const _0xd476ce=_0x3e3a;let _0x3c6783=_0x3aa7f6[_0xd476ce(0x263)][_0xd476ce(0x22d)]();return[..._0x3c6783===''?[]:[_0xd476ce(0x207)+_0x3c6783[_0xd476ce(0x244)]('*/',_0xd476ce(0x1f1))+_0xd476ce(0x25d)],'\x20\x20'+h(_0x3aa7f6)];}function _(_0x5b3800,_0x2523df,_0x1d5a8f,_0x11b556){const _0x40bd1d=_0x3e3a;let _0x10187c=_0x2523df===_0x40bd1d(0x233)?[]:[_0x40bd1d(0x24d)+(_0x2523df===_0x40bd1d(0x1ff)?_0x40bd1d(0x1ff):_0x40bd1d(0x1fa))+_0x40bd1d(0x248)+_0x5b3800],_0x4d38b0=_0x2523df===_0x40bd1d(0x233)?_0x11b556:_0x2523df===_0x40bd1d(0x1ff)?_0x40bd1d(0x200)+_0x5b3800:_0x40bd1d(0x20e)+_0x5b3800;return[..._0x10187c,_0x4d38b0+'\x20{',..._0x1d5a8f[_0x40bd1d(0x25f)](g),'}'];}function v(_0x529318){const _0xc575ed=_0x3e3a;return typeof _0x529318==_0xc575ed(0x1f8)?String(_0x529318):JSON['stringify'](_0x529318);}function y(_0x8832dc,_0x3f5bbd=!0x1){const _0x3e8eaf=_0x3e3a;let _0xa74ab0=_0x8832dc['documentation']??(_0x8832dc[_0x3e8eaf(0x263)]===void 0x0?void 0x0:{'description':_0x8832dc[_0x3e8eaf(0x263)],'tags':[]}),_0x4c1545=_0x8832dc['type'][_0x3e8eaf(0x205)]('(')&&!_0x8832dc[_0x3e8eaf(0x26c)][_0x3e8eaf(0x267)]('=>')?'':':\x20',_0xfe3b5e=_0x8832dc[_0x3e8eaf(0x219)]??''+_0x8832dc[_0x3e8eaf(0x21a)]+(_0x8832dc[_0x3e8eaf(0x228)]?'?':'')+_0x4c1545+_0x8832dc['type'];return[...m(_0xa74ab0,'\x20\x20',!_0x3f5bbd),'\x20\x20'+_0xfe3b5e+';'];}function b(_0x1875d8,_0x399ab5=!0x1){const _0x4b71b8=_0x3e3a;let _0x35cd68=_0x1875d8[_0x4b71b8(0x20b)]??[],_0xf084d6=[_0x4b71b8(0x216)+_0x1875d8[_0x4b71b8(0x232)]+(_0x35cd68[_0x4b71b8(0x220)]===0x0?'':_0x4b71b8(0x218)+_0x35cd68[_0x4b71b8(0x221)](',\x20')),...m(f(_0x1875d8))];if(_0x1875d8[_0x4b71b8(0x21c)]===_0x4b71b8(0x255))return _0xf084d6[_0x4b71b8(0x226)](_0x4b71b8(0x23e)+(_0x1875d8[_0x4b71b8(0x219)]??_0x1875d8[_0x4b71b8(0x21a)])+'\x20{',...(_0x1875d8[_0x4b71b8(0x238)]??[])[_0x4b71b8(0x254)](_0x1f207f=>'\x20\x20'+_0x1f207f[_0x4b71b8(0x21a)]+'\x20=\x20'+v(_0x1f207f[_0x4b71b8(0x24f)])+','),'}'),_0xf084d6[_0x4b71b8(0x221)]('\x0a');if(_0x1875d8[_0x4b71b8(0x21c)]===_0x4b71b8(0x22f))return _0xf084d6['push'](_0x4b71b8(0x215)+(_0x1875d8[_0x4b71b8(0x219)]??_0x1875d8[_0x4b71b8(0x21a)]+_0x4b71b8(0x239)+(_0x1875d8[_0x4b71b8(0x1f3)]??_0x4b71b8(0x234)))+';'),_0xf084d6[_0x4b71b8(0x221)]('\x0a');let _0x1511f1=_0x1875d8['extends']===void 0x0?'':_0x4b71b8(0x202)+_0x1875d8[_0x4b71b8(0x214)];return _0xf084d6['push'](_0x4b71b8(0x20e)+(_0x1875d8[_0x4b71b8(0x219)]??''+_0x1875d8[_0x4b71b8(0x21a)]+_0x1511f1)+'\x20{',...(_0x1875d8[_0x4b71b8(0x273)]??[])[_0x4b71b8(0x25f)](_0x3f3e4a=>y(_0x3f3e4a,_0x399ab5)),...(_0x1875d8['signatures']??[])[_0x4b71b8(0x254)](_0xdf061d=>'\x20\x20'+_0xdf061d+';'),'}'),_0xf084d6[_0x4b71b8(0x221)]('\x0a');}function x(_0x4d89c3){const _0x42ca6f=_0x3e3a;return _0x4d89c3[_0x42ca6f(0x220)]===0x0?[]:['','//\x20directly\x20referenced\x20types',..._0x4d89c3[_0x42ca6f(0x25f)]((_0x5af852,_0x19ef5c)=>[..._0x19ef5c===0x0?[]:[''],b(_0x5af852)])];}function S(_0x353c3a){const _0x5b995c=_0x3e3a;if(_0x353c3a[_0x5b995c(0x23d)]===_0x5b995c(0x261))return'';if(_0x353c3a['kind']===_0x5b995c(0x1f5)){let _0x4bff2c=_0x353c3a['groups']['reduce']((_0x57870b,_0x216d31)=>_0x57870b+_0x216d31['members']['length'],0x0),_0x2bccca=_0x353c3a[_0x5b995c(0x23b)]['find'](_0x25093b=>_0x25093b[_0x5b995c(0x235)]==='own'),_0x459c10=_0x353c3a['declarationKind']===_0x5b995c(0x1f5)?'declare\x20class\x20'+_0x353c3a['declaration']:_0x5b995c(0x215)+_0x353c3a[_0x5b995c(0x219)],_0x22c8d3=['//\x20package:\x20'+_0x353c3a[_0x5b995c(0x232)]+';\x20'+_0x4bff2c+_0x5b995c(0x264),...m(_0x353c3a[_0x5b995c(0x272)])];_0x353c3a[_0x5b995c(0x26f)]==='alias'?(_0x22c8d3['push'](_0x459c10+';'),_0x2bccca!==void 0x0&&_0x22c8d3[_0x5b995c(0x226)]('',..._(_0x2bccca[_0x5b995c(0x25e)],_0x5b995c(0x233),_0x2bccca[_0x5b995c(0x273)],_0x5b995c(0x20e)+_0x2bccca[_0x5b995c(0x25e)]))):_0x22c8d3[_0x5b995c(0x226)](..._(_0x353c3a[_0x5b995c(0x21a)],'own',_0x2bccca?.['members']??[],_0x459c10));for(let _0x4c0c35 of _0x353c3a[_0x5b995c(0x23b)][_0x5b995c(0x266)](_0x31238d=>_0x31238d['relation']!==_0x5b995c(0x233)))_0x22c8d3['push']('',..._(_0x4c0c35[_0x5b995c(0x25e)],_0x4c0c35[_0x5b995c(0x235)],_0x4c0c35[_0x5b995c(0x273)],_0x459c10));return _0x22c8d3['push']('',_0x5b995c(0x1fd)+_0x353c3a[_0x5b995c(0x21a)]+'.<member>'),_0x22c8d3[_0x5b995c(0x221)]('\x0a');}if(_0x353c3a[_0x5b995c(0x21c)]===_0x5b995c(0x1fb)){let [_0x1b2cfc]=_0x353c3a[_0x5b995c(0x209)];if(_0x1b2cfc===void 0x0)return'';let _0x1fc12c=_0x1b2cfc[_0x5b995c(0x235)]===_0x5b995c(0x233)?[]:[_0x5b995c(0x24d)+_0x1b2cfc[_0x5b995c(0x235)]+_0x5b995c(0x1f6)+_0x1b2cfc['relationOwner']];return['//\x20package:\x20'+_0x1b2cfc[_0x5b995c(0x1fb)][_0x5b995c(0x232)],..._0x1fc12c,'declare\x20class\x20'+_0x353c3a[_0x5b995c(0x270)]+'\x20{',..._0x353c3a['entries'][_0x5b995c(0x25f)](_0x20ad61=>[...m(d(_0x20ad61[_0x5b995c(0x1fb)]),'\x20\x20'),'\x20\x20'+h(_0x20ad61[_0x5b995c(0x1fb)])]),'}',...x([...new Map(_0x353c3a[_0x5b995c(0x209)]['flatMap'](_0x20d556=>_0x20d556[_0x5b995c(0x212)])[_0x5b995c(0x254)](_0x3a20d1=>[_0x3a20d1[_0x5b995c(0x21a)],_0x3a20d1]))['values']()])][_0x5b995c(0x221)]('\x0a');}return _0x353c3a['kind']==='type'?[b(_0x353c3a[_0x5b995c(0x26c)]),..._0x353c3a[_0x5b995c(0x1ff)][_0x5b995c(0x25f)](_0x1b0e04=>['',_0x5b995c(0x250)+_0x1b0e04[_0x5b995c(0x21a)],b(_0x1b0e04)]),...x(_0x353c3a[_0x5b995c(0x212)])][_0x5b995c(0x221)]('\x0a'):_0x5b995c(0x24f)in _0x353c3a[_0x5b995c(0x1fb)]?'//\x20package:\x20'+_0x353c3a['declaredBy']['packageName']+_0x5b995c(0x25b)+_0x353c3a['declaredBy'][_0x5b995c(0x21a)]+'\x20{\x0a\x20\x20'+_0x353c3a[_0x5b995c(0x1fb)][_0x5b995c(0x21a)]+_0x5b995c(0x239)+v(_0x353c3a[_0x5b995c(0x1fb)][_0x5b995c(0x24f)])+_0x5b995c(0x1f2):[_0x5b995c(0x216)+_0x353c3a[_0x5b995c(0x213)][_0x5b995c(0x232)]+(_0x353c3a[_0x5b995c(0x213)][_0x5b995c(0x21a)]===_0x353c3a['requestedType'][_0x5b995c(0x21a)]?'':';\x20inherited\x20from\x20'+_0x353c3a[_0x5b995c(0x213)][_0x5b995c(0x21a)]),_0x5b995c(0x20e)+_0x353c3a[_0x5b995c(0x251)][_0x5b995c(0x21a)]+'\x20{',...y(_0x353c3a[_0x5b995c(0x1fb)],!0x0),'}',...x(_0x353c3a[_0x5b995c(0x212)])]['join']('\x0a');}function C(_0x182134){const _0x4fc4a0=_0x3e3a;let _0x29b55c=_0x182134[_0x4fc4a0(0x1f4)][_0x4fc4a0(0x220)]===0x0?'':_0x4fc4a0(0x225)+(_0x182134[_0x4fc4a0(0x21c)]===_0x4fc4a0(0x1fb)?'methods':_0x4fc4a0(0x1f9))+':\x20'+_0x182134[_0x4fc4a0(0x1f4)][_0x4fc4a0(0x221)](',\x20');return _0x182134[_0x4fc4a0(0x21c)]===_0x4fc4a0(0x1fb)?(_0x182134[_0x4fc4a0(0x25e)]??_0x4fc4a0(0x22b))+_0x4fc4a0(0x269)+(_0x182134[_0x4fc4a0(0x1fb)]??'member')+_0x29b55c+_0x4fc4a0(0x271)+(_0x182134[_0x4fc4a0(0x25e)]??_0x4fc4a0(0x249)):_0x4fc4a0(0x26d)+_0x182134[_0x4fc4a0(0x237)]+_0x29b55c+_0x4fc4a0(0x260);}function w(_0x47c8ce,_0x18aa20){const _0x35556f=_0x3e3a;let _0x51a388=_0x47c8ce[_0x35556f(0x20f)](),_0x4321e3=_0x18aa20[_0x35556f(0x266)](_0x3f62ac=>_0x3f62ac['status']===_0x35556f(0x274)),_0x27eb8f=_0x18aa20[_0x35556f(0x266)](_0x253fbf=>_0x253fbf[_0x35556f(0x23d)]===_0x35556f(0x261)),_0x18ed53=_0x18aa20[_0x35556f(0x220)]>0x1;_0x4321e3[_0x35556f(0x220)]>0x0&&_0x51a388[_0x35556f(0x230)]?.(''+_0x4321e3[_0x35556f(0x254)](_0x400612=>_0x18ed53?_0x35556f(0x241)+_0x400612[_0x35556f(0x237)]+'\x0a'+S(_0x400612):S(_0x400612))[_0x35556f(0x221)]('\x0a\x0a')+(_0x18ed53&&_0x27eb8f[_0x35556f(0x220)]===0x0?'\x0a\x0a//\x20batch:\x20'+_0x4321e3['length']+_0x35556f(0x204):'')+'\x0a'),_0x27eb8f['length']>0x0&&_0x47c8ce['error']([..._0x27eb8f[_0x35556f(0x254)](_0x3d6927=>_0x18ed53?'//\x20[not-found]\x20'+_0x3d6927[_0x35556f(0x237)]+'\x0a'+C(_0x3d6927):C(_0x3d6927)),..._0x18ed53?['//\x20batch:\x20'+_0x4321e3[_0x35556f(0x220)]+'\x20found,\x20'+_0x27eb8f[_0x35556f(0x220)]+'\x20not\x20found']:[]][_0x35556f(0x221)]('\x0a\x0a'),{'code':_0x35556f(0x253),'exitCode':0x1});}function T(_0x10349d){const _0x4bae4e=_0x3e3a;let _0x4c2941=new _0x273d70(_0x4bae4e(0x1fc))[_0x4bae4e(0x21e)](_0x4bae4e(0x25c))[_0x4bae4e(0x24c)](_0x4bae4e(0x24a),_0x4bae4e(0x236))[_0x4bae4e(0x22a)](_0x371bae=>{const _0x6aa961=_0x4bae4e;if(_0x371bae['length']===0x0){_0x4c2941[_0x6aa961(0x252)]();return;}w(_0x4c2941,_0x10349d[_0x6aa961(0x203)][_0x6aa961(0x208)](_0x371bae));});return _0x4c2941['command'](_0x4bae4e(0x25a))[_0x4bae4e(0x21e)]('Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword')[_0x4bae4e(0x24c)](_0x4bae4e(0x256),_0x4bae4e(0x24b))['addOption'](new _0x29ab34('--unit\x20<unit>',_0x4bae4e(0x217))[_0x4bae4e(0x246)](_0x1432f8))['action']((_0x3b6547,_0x3f05a9)=>{const _0x224e90=_0x4bae4e;let _0x1bc634=_0x10349d[_0x224e90(0x203)][_0x224e90(0x25a)]({'terms':_0x3b6547,..._0x3f05a9[_0x224e90(0x240)]===void 0x0?{}:{'unit':_0x3f05a9[_0x224e90(0x240)]}});_0x4c2941[_0x224e90(0x20f)]()['writeOut']?.(l(_0x1bc634,_0x3f05a9['unit'])+'\x0a');}),_0x4c2941[_0x4bae4e(0x21b)](_0x4bae4e(0x208))[_0x4bae4e(0x21e)]('Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values')[_0x4bae4e(0x24c)](_0x4bae4e(0x1f7),'one\x20or\x20more\x20exact\x20API\x20symbols')['action'](_0x2f42a4=>{const _0x1cc334=_0x4bae4e;w(_0x4c2941,_0x10349d[_0x1cc334(0x203)][_0x1cc334(0x208)](_0x2f42a4));}),_0x4c2941;}export{T as createApiCommand};
|
|
1
|
+
function _0xe772(){const _0x27083d=['query','signature','packageName','getter','declare\x20class\x20','every','1154643xkRnCi','//\x20inherited\x20declaration\x20from\x20','12YFhtXg','<symbols...>','groups','```','flatMap','members','Symbol','find','29030KoSuCt','choices','\x0a\x0a//\x20batch:\x20','225000GhmONe','target','api','type','owner','unit','//\x20[not-found]\x20','api.reference.not-found','includes','error','declarationKind','command','\x20supported\x20members','1xANoQv','176bTtaUB','<Class>','name','suggestions','//\x20package:\x20','declare\x20enum\x20','one\x20or\x20more\x20terms,\x20searched\x20independently','readonly\x20','status','\x20found,\x20','\x20*/','slice','writeOut','unknown','\x20has\x20no\x20','210230GjyTOW','\x20=\x20','kind','example','45ivvwCv','interface\x20','documentation','values','entries','match','/**','Offline\x20Univer\x20Facade\x20API\x20reference','2188224lVauUZ','//\x20directly\x20referenced\x20types','aliases','term','methods','map','push','8WzEIXd','type\x20','class','\x20not\x20found','declaredBy','member','//\x20full\x20member\x20docs:\x20api\x20show\x20','argument','relation',',\x0a}','found','Show\x20exact\x20API\x20classes,\x20members,\x20types,\x20fields,\x20or\x20enum\x20values','exact\x20symbols;\x20shorthand\x20for\x20api\x20show','\x20from\x20','\x20══\x0a','text','split','[symbols...]','appendix','\x20extends\x20','configureOutput','symbols','limit\x20results\x20to\x20one\x20unit\x20while\x20retaining\x20shared\x20APIs',';\x20inherited\x20from\x20','//\x20','trim','inherited','--unit\x20<unit>','//\x20[found]\x20','reference','stringify',',\x20or\x20api\x20show\x20<Class>\x20to\x20browse\x20a\x20whole\x20class.','subject','number','replaceAll','\x0adeclare\x20enum\x20','filter','\x20\x20—\x20','startsWith','own','matches','══\x20','length','Unknown\x20symbol:\x20','value','No\x20API\x20matches\x20\x22','declaration','tags','938765EHeaia','signatures','join','alias','composed','optional','addOption','not-found','\x20\x20[','\x20\x20/**\x20','action','267231bnyPmZ','description','<terms...>','\x20{\x0a\x20\x20','show','summary'];_0xe772=function(){return _0x27083d;};return _0xe772();}(function(_0xe70b74,_0x1a0bdf){const _0x1c64a4=_0x4900,_0x259dc1=_0xe70b74();while(!![]){try{const _0x25f882=parseInt(_0x1c64a4(0x165))/0x1*(parseInt(_0x1c64a4(0x175))/0x2)+-parseInt(_0x1c64a4(0x1c3))/0x3*(parseInt(_0x1c64a4(0x188))/0x4)+parseInt(_0x1c64a4(0x1b8))/0x5+parseInt(_0x1c64a4(0x14d))/0x6*(parseInt(_0x1c64a4(0x14b))/0x7)+parseInt(_0x1c64a4(0x158))/0x8*(-parseInt(_0x1c64a4(0x179))/0x9)+parseInt(_0x1c64a4(0x155))/0xa*(parseInt(_0x1c64a4(0x166))/0xb)+-parseInt(_0x1c64a4(0x181))/0xc;if(_0x25f882===_0x1a0bdf)break;else _0x259dc1['push'](_0x259dc1['shift']());}catch(_0x552f43){_0x259dc1['push'](_0x259dc1['shift']());}}}(_0xe772,0x29093));import{API_REFERENCE_UNITS as _0x58f488}from'@univer-cli/api-reference';import{Command as _0xc3527c,Option as _0x1f8e00}from'commander';var r=0x48,i=0x5a;function a(_0x3556cb){const _0x1a49d5=_0x4900;return(_0x3556cb[_0x1a49d5(0x17e)](/^(.*?[.。])(\s|$)/u)?.[0x1]??_0x3556cb)['trim']();}function o(_0x403171,_0xa5fd9){const _0x389b77=_0x4900;return _0x403171[_0x389b77(0x1b2)]>_0xa5fd9?_0x403171[_0x389b77(0x171)](0x0,_0xa5fd9-0x1)+'…':_0x403171;}function s(_0x546d64){const _0x4ac026=_0x4900;let _0x17dfca=_0x546d64[_0x4ac026(0x144)]===''?'':_0x4ac026(0x1ad)+a(_0x546d64[_0x4ac026(0x144)]);return'['+_0x546d64[_0x4ac026(0x177)]+']\x20'+o(_0x546d64[_0x4ac026(0x146)],r)+o(_0x17dfca,i)+_0x4ac026(0x1c0)+_0x546d64[_0x4ac026(0x147)]+']';}function c(_0x1a731a,_0xe57aa6){const _0xd2395a=_0x4900;if(_0x1a731a['matches']['length']===0x0){let _0xceaa97=_0xe57aa6===void 0x0?'':'\x20(filtered\x20by\x20--unit\x20'+_0xe57aa6+')';return _0xd2395a(0x1b5)+_0x1a731a[_0xd2395a(0x184)]+'\x22'+_0xceaa97+'.\x20Try\x20a\x20shorter\x20substring'+(_0xe57aa6===void 0x0?'':',\x20drop\x20--unit')+_0xd2395a(0x1a7);}let _0x32c92d=_0x1a731a[_0xd2395a(0x1b0)][_0xd2395a(0x186)](s),_0x13575b=_0x1a731a['totalMatches']-_0x1a731a[_0xd2395a(0x1b0)][_0xd2395a(0x1b2)];return _0x13575b>0x0&&_0x32c92d['push']('…\x20'+_0x13575b+'\x20more.\x20Narrow\x20with\x20a\x20longer\x20substring,\x20or\x20api\x20show\x20<symbol>\x20for\x20details.'),_0x32c92d['join']('\x0a');}function l(_0x5809e4,_0x426763){const _0x234170=_0x4900;return _0x5809e4[_0x234170(0x186)](_0x5335d5=>{const _0x3e735f=_0x234170;let _0xfa7df2=c(_0x5335d5,_0x426763);return _0x5809e4[_0x3e735f(0x1b2)]>0x1?_0x3e735f(0x1b1)+_0x5335d5[_0x3e735f(0x184)]+_0x3e735f(0x196)+_0xfa7df2:_0xfa7df2;})[_0x234170(0x1ba)]('\x0a\x0a');}function u(_0x47a137){const _0x176e7e=_0x4900;return _0x47a137[_0x176e7e(0x198)](/\n\s*\n/u,0x1)[0x0]?.[_0x176e7e(0x1a1)]()??'';}function d(_0x337ab8){const _0x1d1187=_0x4900;return _0x337ab8[_0x1d1187(0x17b)]===void 0x0?{'description':_0x337ab8[_0x1d1187(0x144)],'tags':_0x337ab8[_0x1d1187(0x178)]===''?[]:[{'name':_0x1d1187(0x178),'text':_0x337ab8[_0x1d1187(0x178)]}]}:_0x337ab8[_0x1d1187(0x17b)];}function f(_0x434897){const _0x5d1b2a=_0x4900;return _0x434897[_0x5d1b2a(0x17b)]??{'description':_0x434897[_0x5d1b2a(0x144)],'tags':[]};}function p(_0x39a0b8){const _0x48f8b7=_0x4900;let _0x15237d=_0x39a0b8[_0x48f8b7(0x15b)]===void 0x0?'':'\x20{'+_0x39a0b8[_0x48f8b7(0x15b)]+'}',_0x283f18=_0x39a0b8['subject']===void 0x0?'':'\x20'+_0x39a0b8[_0x48f8b7(0x1a8)],[_0x3632cb='',..._0x545b94]=_0x39a0b8[_0x48f8b7(0x197)]===''?[]:_0x39a0b8[_0x48f8b7(0x197)][_0x48f8b7(0x198)]('\x0a');return _0x39a0b8[_0x48f8b7(0x168)]===_0x48f8b7(0x178)&&_0x3632cb['trimStart']()[_0x48f8b7(0x1ae)](_0x48f8b7(0x150))?['@'+_0x39a0b8['name']+_0x15237d+_0x283f18,_0x3632cb,..._0x545b94]:['@'+_0x39a0b8[_0x48f8b7(0x168)]+_0x15237d+_0x283f18+(_0x3632cb===''?'':'\x20'+_0x3632cb),..._0x545b94];}function _0x4900(_0x31b6f1,_0xaaf2ff){_0x31b6f1=_0x31b6f1-0x143;const _0xe77201=_0xe772();let _0x490018=_0xe77201[_0x31b6f1];return _0x490018;}function m(_0x27bcda,_0x39b357='',_0x559707=!0x1){const _0x1c83ba=_0x4900;if(_0x27bcda===void 0x0)return[];let _0x416cad=_0x559707?u(_0x27bcda['description']):_0x27bcda[_0x1c83ba(0x1c4)],_0x11162d=_0x27bcda[_0x1c83ba(0x1b7)][_0x1c83ba(0x151)](p),_0x3030f3=[..._0x416cad[_0x1c83ba(0x198)]('\x0a'),..._0x559707||_0x11162d['length']===0x0?[]:['',..._0x11162d]];for(;_0x3030f3['at'](-0x1)==='';)_0x3030f3['pop']();return _0x3030f3[_0x1c83ba(0x14a)](_0x3938cd=>_0x3938cd==='')?[]:[_0x39b357+_0x1c83ba(0x17f),..._0x3030f3['map'](_0x3cc37a=>_0x39b357+'\x20*'+(_0x3cc37a===''?'':'\x20'+_0x3cc37a)),_0x39b357+_0x1c83ba(0x170)];}function h(_0x52fa71){const _0x26c1c2=_0x4900;return''+((_0x52fa71[_0x26c1c2(0x177)]===_0x26c1c2(0x148)||_0x52fa71['readonly'])&&!_0x52fa71[_0x26c1c2(0x146)][_0x26c1c2(0x1ae)](_0x26c1c2(0x16d))?_0x26c1c2(0x16d):'')+_0x52fa71['signature']+';';}function g(_0x1ba407){const _0x1c5ede=_0x4900;let _0x4aebc0=_0x1ba407[_0x1c5ede(0x144)][_0x1c5ede(0x1a1)]();return[..._0x4aebc0===''?[]:[_0x1c5ede(0x1c1)+_0x4aebc0[_0x1c5ede(0x1aa)]('*/','*\x5c/')+_0x1c5ede(0x170)],'\x20\x20'+h(_0x1ba407)];}function _(_0x18262b,_0x41f2d9,_0x44dadb,_0x98b7e3){const _0x99848e=_0x4900;let _0x16a223=_0x41f2d9==='own'?[]:['//\x20'+(_0x41f2d9===_0x99848e(0x1a2)?_0x99848e(0x1a2):_0x99848e(0x1bc))+'\x20member\x20projection\x20from\x20'+_0x18262b],_0xe4474=_0x41f2d9==='own'?_0x98b7e3:_0x41f2d9==='inherited'?_0x99848e(0x149)+_0x18262b:_0x99848e(0x17a)+_0x18262b;return[..._0x16a223,_0xe4474+'\x20{',..._0x44dadb[_0x99848e(0x151)](g),'}'];}function v(_0x4ccaad){const _0x32b6f8=_0x4900;return typeof _0x4ccaad==_0x32b6f8(0x1a9)?String(_0x4ccaad):JSON[_0x32b6f8(0x1a6)](_0x4ccaad);}function y(_0x156d99,_0x5f2cfd=!0x1){const _0x4bb52d=_0x4900;let _0x14b2dd=_0x156d99['documentation']??(_0x156d99[_0x4bb52d(0x144)]===void 0x0?void 0x0:{'description':_0x156d99['summary'],'tags':[]}),_0xf87f93=_0x156d99[_0x4bb52d(0x15b)]['startsWith']('(')&&!_0x156d99['type'][_0x4bb52d(0x160)]('=>')?'':':\x20',_0x3ef129=_0x156d99['declaration']??''+_0x156d99[_0x4bb52d(0x168)]+(_0x156d99[_0x4bb52d(0x1bd)]?'?':'')+_0xf87f93+_0x156d99[_0x4bb52d(0x15b)];return[...m(_0x14b2dd,'\x20\x20',!_0x5f2cfd),'\x20\x20'+_0x3ef129+';'];}function b(_0x7a1aa0,_0x2a0031=!0x1){const _0x20f910=_0x4900;let _0x32564f=_0x7a1aa0[_0x20f910(0x183)]??[],_0x26e363=[_0x20f910(0x16a)+_0x7a1aa0[_0x20f910(0x147)]+(_0x32564f[_0x20f910(0x1b2)]===0x0?'':';\x20runtime\x20aliases:\x20'+_0x32564f[_0x20f910(0x1ba)](',\x20')),...m(f(_0x7a1aa0))];if(_0x7a1aa0[_0x20f910(0x177)]==='enum')return _0x26e363[_0x20f910(0x187)](_0x20f910(0x16b)+(_0x7a1aa0['declaration']??_0x7a1aa0['name'])+'\x20{',...(_0x7a1aa0[_0x20f910(0x17c)]??[])[_0x20f910(0x186)](_0x3086c6=>'\x20\x20'+_0x3086c6[_0x20f910(0x168)]+'\x20=\x20'+v(_0x3086c6['value'])+','),'}'),_0x26e363[_0x20f910(0x1ba)]('\x0a');if(_0x7a1aa0['kind']===_0x20f910(0x1bb))return _0x26e363[_0x20f910(0x187)](_0x20f910(0x189)+(_0x7a1aa0[_0x20f910(0x1b6)]??_0x7a1aa0[_0x20f910(0x168)]+_0x20f910(0x176)+(_0x7a1aa0['definition']??_0x20f910(0x173)))+';'),_0x26e363[_0x20f910(0x1ba)]('\x0a');let _0x43a3cb=_0x7a1aa0['extends']===void 0x0?'':_0x20f910(0x19b)+_0x7a1aa0['extends'];return _0x26e363[_0x20f910(0x187)](_0x20f910(0x17a)+(_0x7a1aa0[_0x20f910(0x1b6)]??''+_0x7a1aa0[_0x20f910(0x168)]+_0x43a3cb)+'\x20{',...(_0x7a1aa0[_0x20f910(0x152)]??[])['flatMap'](_0xe005a6=>y(_0xe005a6,_0x2a0031)),...(_0x7a1aa0[_0x20f910(0x1b9)]??[])[_0x20f910(0x186)](_0x3eb8b7=>'\x20\x20'+_0x3eb8b7+';'),'}'),_0x26e363['join']('\x0a');}function x(_0x429ea0){const _0x51c3b5=_0x4900;return _0x429ea0[_0x51c3b5(0x1b2)]===0x0?[]:['',_0x51c3b5(0x182),..._0x429ea0[_0x51c3b5(0x151)]((_0xf574b9,_0x2a3f73)=>[..._0x2a3f73===0x0?[]:[''],b(_0xf574b9)])];}function S(_0x17ccc6){const _0x30abbd=_0x4900;if(_0x17ccc6['status']===_0x30abbd(0x1bf))return'';if(_0x17ccc6['kind']===_0x30abbd(0x18a)){let _0x35989c=_0x17ccc6[_0x30abbd(0x14f)]['reduce']((_0x33d8f9,_0x47e634)=>_0x33d8f9+_0x47e634['members'][_0x30abbd(0x1b2)],0x0),_0xb62525=_0x17ccc6[_0x30abbd(0x14f)][_0x30abbd(0x154)](_0x24c9dc=>_0x24c9dc[_0x30abbd(0x190)]==='own'),_0x15a431=_0x17ccc6[_0x30abbd(0x162)]===_0x30abbd(0x18a)?_0x30abbd(0x149)+_0x17ccc6[_0x30abbd(0x1b6)]:_0x30abbd(0x189)+_0x17ccc6[_0x30abbd(0x1b6)],_0x4bbbb3=[_0x30abbd(0x16a)+_0x17ccc6[_0x30abbd(0x147)]+';\x20'+_0x35989c+_0x30abbd(0x164),...m(_0x17ccc6[_0x30abbd(0x17b)])];_0x17ccc6[_0x30abbd(0x162)]==='alias'?(_0x4bbbb3[_0x30abbd(0x187)](_0x15a431+';'),_0xb62525!==void 0x0&&_0x4bbbb3[_0x30abbd(0x187)]('',..._(_0xb62525['owner'],_0x30abbd(0x1af),_0xb62525[_0x30abbd(0x152)],_0x30abbd(0x17a)+_0xb62525[_0x30abbd(0x15c)]))):_0x4bbbb3[_0x30abbd(0x187)](..._(_0x17ccc6[_0x30abbd(0x168)],'own',_0xb62525?.[_0x30abbd(0x152)]??[],_0x15a431));for(let _0x4abf72 of _0x17ccc6[_0x30abbd(0x14f)]['filter'](_0x43559e=>_0x43559e[_0x30abbd(0x190)]!==_0x30abbd(0x1af)))_0x4bbbb3['push']('',..._(_0x4abf72[_0x30abbd(0x15c)],_0x4abf72[_0x30abbd(0x190)],_0x4abf72[_0x30abbd(0x152)],_0x15a431));return _0x4bbbb3['push']('',_0x30abbd(0x18e)+_0x17ccc6['name']+'.<member>'),_0x4bbbb3[_0x30abbd(0x1ba)]('\x0a');}if(_0x17ccc6[_0x30abbd(0x177)]===_0x30abbd(0x18d)){let [_0x612ed1]=_0x17ccc6[_0x30abbd(0x17d)];if(_0x612ed1===void 0x0)return'';let _0x20785f=_0x612ed1[_0x30abbd(0x190)]==='own'?[]:[_0x30abbd(0x1a0)+_0x612ed1[_0x30abbd(0x190)]+_0x30abbd(0x195)+_0x612ed1['relationOwner']];return[_0x30abbd(0x16a)+_0x612ed1[_0x30abbd(0x18d)][_0x30abbd(0x147)],..._0x20785f,_0x30abbd(0x149)+_0x17ccc6[_0x30abbd(0x159)]+'\x20{',..._0x17ccc6['entries'][_0x30abbd(0x151)](_0x440fe1=>[...m(d(_0x440fe1['member']),'\x20\x20'),'\x20\x20'+h(_0x440fe1['member'])]),'}',...x([...new Map(_0x17ccc6[_0x30abbd(0x17d)][_0x30abbd(0x151)](_0x158efc=>_0x158efc[_0x30abbd(0x19a)])[_0x30abbd(0x186)](_0x159b89=>[_0x159b89['name'],_0x159b89]))['values']()])][_0x30abbd(0x1ba)]('\x0a');}return _0x17ccc6['kind']==='type'?[b(_0x17ccc6[_0x30abbd(0x15b)]),..._0x17ccc6['inherited'][_0x30abbd(0x151)](_0x111c91=>['',_0x30abbd(0x14c)+_0x111c91[_0x30abbd(0x168)],b(_0x111c91)]),...x(_0x17ccc6[_0x30abbd(0x19a)])][_0x30abbd(0x1ba)]('\x0a'):'value'in _0x17ccc6[_0x30abbd(0x18d)]?'//\x20package:\x20'+_0x17ccc6[_0x30abbd(0x18c)][_0x30abbd(0x147)]+_0x30abbd(0x1ab)+_0x17ccc6[_0x30abbd(0x18c)][_0x30abbd(0x168)]+_0x30abbd(0x1c6)+_0x17ccc6[_0x30abbd(0x18d)][_0x30abbd(0x168)]+'\x20=\x20'+v(_0x17ccc6[_0x30abbd(0x18d)][_0x30abbd(0x1b4)])+_0x30abbd(0x191):[_0x30abbd(0x16a)+_0x17ccc6[_0x30abbd(0x18c)][_0x30abbd(0x147)]+(_0x17ccc6[_0x30abbd(0x18c)][_0x30abbd(0x168)]===_0x17ccc6['requestedType']['name']?'':_0x30abbd(0x19f)+_0x17ccc6[_0x30abbd(0x18c)][_0x30abbd(0x168)]),_0x30abbd(0x17a)+_0x17ccc6['requestedType'][_0x30abbd(0x168)]+'\x20{',...y(_0x17ccc6['member'],!0x0),'}',...x(_0x17ccc6[_0x30abbd(0x19a)])]['join']('\x0a');}function C(_0x476f4b){const _0x5a407c=_0x4900;let _0x58fa90=_0x476f4b[_0x5a407c(0x169)][_0x5a407c(0x1b2)]===0x0?'':'\x0a\x20\x20Similar\x20'+(_0x476f4b['kind']==='member'?_0x5a407c(0x185):_0x5a407c(0x19d))+':\x20'+_0x476f4b[_0x5a407c(0x169)]['join'](',\x20');return _0x476f4b[_0x5a407c(0x177)]===_0x5a407c(0x18d)?(_0x476f4b[_0x5a407c(0x15c)]??_0x5a407c(0x153))+_0x5a407c(0x174)+(_0x476f4b[_0x5a407c(0x18d)]??_0x5a407c(0x18d))+_0x58fa90+'\x0a\x20\x20List\x20all:\x20api\x20show\x20'+(_0x476f4b[_0x5a407c(0x15c)]??_0x5a407c(0x167)):_0x5a407c(0x1b3)+_0x476f4b[_0x5a407c(0x145)]+_0x58fa90+'\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(_0x379bc3,_0x1d40f9){const _0x3bfd97=_0x4900;let _0x18bd82=_0x379bc3[_0x3bfd97(0x19c)](),_0x280eea=_0x1d40f9[_0x3bfd97(0x1ac)](_0x22631e=>_0x22631e[_0x3bfd97(0x16e)]===_0x3bfd97(0x192)),_0x1f62b0=_0x1d40f9[_0x3bfd97(0x1ac)](_0x1c406a=>_0x1c406a[_0x3bfd97(0x16e)]===_0x3bfd97(0x1bf)),_0x1c511f=_0x1d40f9['length']>0x1;_0x280eea[_0x3bfd97(0x1b2)]>0x0&&_0x18bd82[_0x3bfd97(0x172)]?.(''+_0x280eea[_0x3bfd97(0x186)](_0x1edef7=>_0x1c511f?_0x3bfd97(0x1a4)+_0x1edef7[_0x3bfd97(0x145)]+'\x0a'+S(_0x1edef7):S(_0x1edef7))[_0x3bfd97(0x1ba)]('\x0a\x0a')+(_0x1c511f&&_0x1f62b0[_0x3bfd97(0x1b2)]===0x0?_0x3bfd97(0x157)+_0x280eea[_0x3bfd97(0x1b2)]+'\x20found,\x200\x20not\x20found':'')+'\x0a'),_0x1f62b0[_0x3bfd97(0x1b2)]>0x0&&_0x379bc3[_0x3bfd97(0x161)]([..._0x1f62b0[_0x3bfd97(0x186)](_0xcf2ac4=>_0x1c511f?_0x3bfd97(0x15e)+_0xcf2ac4[_0x3bfd97(0x145)]+'\x0a'+C(_0xcf2ac4):C(_0xcf2ac4)),..._0x1c511f?['//\x20batch:\x20'+_0x280eea[_0x3bfd97(0x1b2)]+_0x3bfd97(0x16f)+_0x1f62b0[_0x3bfd97(0x1b2)]+_0x3bfd97(0x18b)]:[]][_0x3bfd97(0x1ba)]('\x0a\x0a'),{'code':_0x3bfd97(0x15f),'exitCode':0x1});}function T(_0x457635){const _0x26bfab=_0x4900;let _0x184e26=new _0xc3527c(_0x26bfab(0x15a))[_0x26bfab(0x1c4)](_0x26bfab(0x180))[_0x26bfab(0x18f)](_0x26bfab(0x199),_0x26bfab(0x194))[_0x26bfab(0x1c2)](_0x437113=>{const _0x160824=_0x26bfab;if(_0x437113[_0x160824(0x1b2)]===0x0){_0x184e26['outputHelp']();return;}w(_0x184e26,_0x457635['reference']['show'](_0x437113));});return _0x184e26[_0x26bfab(0x163)](_0x26bfab(0x154))['description']('Find\x20API\x20methods,\x20types,\x20fields,\x20and\x20enums\x20by\x20keyword')[_0x26bfab(0x18f)](_0x26bfab(0x1c5),_0x26bfab(0x16c))[_0x26bfab(0x1be)](new _0x1f8e00(_0x26bfab(0x1a3),_0x26bfab(0x19e))[_0x26bfab(0x156)](_0x58f488))['action']((_0xfad6ea,_0x120661)=>{const _0x5b0ba2=_0x26bfab;let _0xf7da8c=_0x457635[_0x5b0ba2(0x1a5)][_0x5b0ba2(0x154)]({'terms':_0xfad6ea,..._0x120661[_0x5b0ba2(0x15d)]===void 0x0?{}:{'unit':_0x120661[_0x5b0ba2(0x15d)]}});_0x184e26[_0x5b0ba2(0x19c)]()[_0x5b0ba2(0x172)]?.(l(_0xf7da8c,_0x120661[_0x5b0ba2(0x15d)])+'\x0a');}),_0x184e26[_0x26bfab(0x163)](_0x26bfab(0x143))[_0x26bfab(0x1c4)](_0x26bfab(0x193))[_0x26bfab(0x18f)](_0x26bfab(0x14e),'one\x20or\x20more\x20exact\x20API\x20symbols')[_0x26bfab(0x1c2)](_0x50ec58=>{const _0xd5a3fd=_0x26bfab;w(_0x184e26,_0x457635['reference'][_0xd5a3fd(0x143)](_0x50ec58));}),_0x184e26;}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.0
|
|
4
|
+
"version": "1.0.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.0.0
|
|
21
|
+
"@univer-cli/api-reference": "1.0.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|