hana-cli
Version:
HANA Developer Command Line Interface
47 lines (43 loc) • 4.02 kB
JavaScript
// @ts-check
import * as baseLite from '../utils/base-lite.js'
// Command file paths for lazy loading - ordered alphabetically
const commandFiles = [
'./activateHDI.js', './adminHDI.js', './adminHDIGroup.js', './alerts.js', './auditLog.js', './backup.js', './backupList.js',
'./backupStatus.js', './blocking.js', './btp.js', './btpInfo.js', './btpInfoUI.js', './btpSubs.js',
'./cacheStats.js', './calcViewAnalyzer.js', './callProcedure.js', './codeTemplate.js', './certificates.js',
'./certificatesUI.js', './cds.js', './changeLog.js', './changeLogUI.js', './columnStats.js',
'./compareData.js', './compareSchema.js', './connect.js', './connectViaServiceKey.js',
'./connections.js', './containers.js', './containersUI.js', './copy2DefaultEnv.js', './copy2Env.js',
'./copy2Secrets.js', './crashDumps.js', './createContainer.js', './createContainerUsers.js', './createGroup.js',
'./createJWT.js', './createModule.js', './createXSAAdmin.js', './dataDiff.js',
'./dataLineage.js',
'./dataMask.js', './dataProfile.js', './dataSync.js', './dataTypes.js', './dataTypesUI.js', './dataVolumes.js', './dataValidator.js', './deadlocks.js', './dependencies.js', './diagnose.js', './disks.js',
'./dropContainer.js', './dropGroup.js', './duplicateDetection.js', './encryptionStatus.js', './erdDiagram.js', './export.js', './expensiveStatements.js',
'./features.js', './featuresUI.js', './featureUsage.js', './featureUsageUI.js', './fragmentationCheck.js', './functions.js',
'./functionsUI.js', './ftIndexes.js', './generateDocs.js', './generateTestData.js', './grantChains.js', './graphWorkspaces.js', './hanaCloudHDIInstances.js', './hanaCloudHDIInstancesUI.js',
'./hanaCloudInstances.js', './hanaCloudSBSSInstances.js', './hanaCloudSBSSInstancesUI.js',
'./hanaCloudSchemaInstances.js', './hanaCloudSchemaInstancesUI.js', './hanaCloudSecureStoreInstances.js',
'./hanaCloudSecureStoreInstancesUI.js', './hanaCloudStart.js', './hanaCloudStop.js',
'./hanaCloudUPSInstances.js', './hanaCloudUPSInstancesUI.js', './hdbsql.js', './healthCheck.js', './hostInformation.js',
'./indexes.js', './indexesUI.js', './iniContents.js', './iniFiles.js', './inspectFunction.js',
'./inspectIndex.js', './inspectJWT.js', './inspectLibMember.js', './inspectLibrary.js',
'./inspectProcedure.js', './inspectTable.js', './inspectTableUI.js', './inspectTrigger.js',
'./inspectUser.js', './inspectView.js', './interactive.js', './issue.js', './kafkaConnect.js', './libraries.js',
'./longRunning.js', './massConvert.js', './massConvertUI.js', './massDelete.js', './massExport.js', './massGrant.js',
'./massRename.js', './massUpdate.js', './massUsers.js', './memoryAnalysis.js', './memoryLeaks.js', './objects.js',
'./openBAS.js', './openChangeLog.js', './openDBExplorer.js', './openReadMe.js', './ports.js',
'./privilegeAnalysis.js', './privilegeError.js', './procedures.js', './pwdPolicy.js', './queryPlan.js', './querySimple.js',
'./querySimpleUI.js', './partitions.js', './readMe.js', './readMeUI.js', './recommendations.js', './reclaim.js', './referentialCheck.js', './replicationStatus.js', './restore.js',
'./rick.js', './roles.js', './schemas.js', './schemasUI.js', './schemaClone.js', './securityScan.js', './sdiTasks.js', './sequences.js', './spatialData.js', './status.js',
'./synonyms.js', './systemInfo.js', './systemInfoUI.js', './tableHotspots.js', './tableGroups.js', './tables.js',
'./tableCopy.js', './tablesPG.js', './tablesSQLite.js', './tablesUI.js', './timeSeriesTools.js', './traces.js',
'./traceContents.js', './triggers.js', './UI.js', './users.js', './version.js', './viewDocs.js', './views.js',
'./workloadManagement.js', './xsaServices.js'
]
export async function init() {
baseLite.debug(`Command Init`)
// Load all command modules in parallel
const lazyCommands = await Promise.all(commandFiles.map(file => import(file)))
baseLite.debug(`Command Init End`)
return lazyCommands
}