hana-cli
Version:
HANA Developer Command Line Interface
26 lines (20 loc) • 723 B
JavaScript
// @ts-check
import * as base from '../utils/base.js'
global.__xRef = []
export const command = 'massConvertUI [schema] [table]'
export const aliases = ['mcui', 'massconvertui', 'massConvUI', 'massconvui']
export const describe = base.bundle.getText("massConvertUI")
export const builder = base.getMassConvertBuilder(true)
export function handler (argv) {
base.promptHandler(argv, startWebServer, base.getMassConvertPrompts(true))
}
async function startWebServer(prompts) {
base.debug('startWebServer')
try {
base.setPrompts(prompts)
await base.webServerSetup('/ui/#massconvert-ui')
return base.end()
} catch (error) {
base.error(error)
}
}