in eng/scripts/inventory-dashboard/src/apiSpecRepoDirReadingTool.js [50:69]
function getApiDisplayNames(specDirPath, specDir) {
const apiDisplayNames = {};
const subDirs = fs.readdirSync(specDirPath);
subDirs.forEach(subDir => {
if(subDir === "data-plane" || subDir === "resource-manager") {
if(serviceNameMap[specDir]) {
if (serviceNameMap[specDir].includes("|")) {
apiDisplayNames[subDir] = serviceNameMap[specDir].split("|")[1];
} else {
apiDisplayNames[subDir] = serviceNameMap[specDir];
}
} else {
apiDisplayNames[subDir] = specDir;
}
}else {
apiDisplayNames[subDir] = subDir;
}
});
return apiDisplayNames;
}