mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(user-menu) add ability to ignore private methods
This commit is contained in:
parent
554023c839
commit
8961841847
3 changed files with 56 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ async function readDefaultMenu({prefix}) {
|
|||
return data;
|
||||
}
|
||||
|
||||
module.exports._selectNames = selectNames;
|
||||
function selectNames(names, panel, {selectFile, getCurrentByName}) {
|
||||
for (const name of names) {
|
||||
const file = getCurrentByName(name, panel);
|
||||
|
|
@ -77,6 +78,7 @@ function selectNames(names, panel, {selectFile, getCurrentByName}) {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports._compare = compare;
|
||||
function compare(a, b) {
|
||||
const result = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue