1- import { CLIError , Command , flags } from '@microsoft/bf-cli-command'
2- import { camelCase , kebabCase , upperFirst } from 'lodash'
1+ import { Command , flags } from '@microsoft/bf-cli-command'
2+ import { camelCase , kebabCase , upperFirst } from 'lodash'
33import * as path from 'path'
44
5- import { LuisToTsConverter } from '../../../parser/converters/luis-to-ts-converter'
6- import { Utils } from '../../../utils'
5+ import { LuisToTsConverter } from '../../../parser/converters/luis-to-ts-converter'
6+ import { Utils } from '../../../utils'
77
88const fs = require ( 'fs-extra' )
99
1010export default class LuisGenerateTs extends Command {
1111 static description = 'Generate:ts generates a strongly typed typescript source code from an exported (json) LUIS model.'
1212
1313 static flags : flags . Input < any > = {
14- in : flags . string ( { description : 'Source .lu file(s) or LUIS application JSON model' } ) ,
15- out : flags . string ( { description : 'Output file or folder name. If not specified stdout will be used as output' , default : '' } ) ,
16- className : flags . string ( { description : 'Name of the class' } ) ,
14+ in : flags . string ( { description : 'Source .lu file(s) or LUIS application JSON model' } ) ,
15+ out : flags . string ( { description : 'Output file or folder name. If not specified stdout will be used as output' , default : '' } ) ,
16+ className : flags . string ( { description : 'Name of the class' } ) ,
1717 }
1818
1919 reorderEntities ( app : any , name : string ) : void {
@@ -23,7 +23,7 @@ export default class LuisGenerateTs extends Command {
2323 }
2424
2525 async run ( ) {
26- const { flags } = this . parse ( LuisGenerateTs )
26+ const { flags} = this . parse ( LuisGenerateTs )
2727 let stdInput = await this . readStdin ( )
2828
2929 const pathPrefix = path . isAbsolute ( flags . in ) ? '' : process . cwd ( )
0 commit comments