diff --git a/main.ts b/main.ts index 387a68e..0f09e23 100755 --- a/main.ts +++ b/main.ts @@ -12,13 +12,13 @@ const cli = meow(` Examples $ tlb ./path/to/file.tlb - > Output: ./path/to/file.ts + > Generated code is saved to ./path/to/file.ts $ tlb -o ./path/to/output.ts ./path/to/file.tlb - > Output: ./path/to/output.ts + > Generated code is saved to ./path/to/output.ts $ tlb -l typescript ./path/to/file.tlb - > Output: ./path/to/file.ts + > Generated code is saved to ./path/to/file.ts `, { flags: { output: { diff --git a/src/main.ts b/src/main.ts index aae046b..c7cc107 100644 --- a/src/main.ts +++ b/src/main.ts @@ -70,6 +70,7 @@ export function generateCodeWithGenerator(inputPath: string, outputPath: string, const tree = ast(input) fs.writeFile(outputPath, generateCodeByAST(tree, input, getGenerator), () => { }); + console.log(`Generated code is saved to ${outputPath}`); } export function generateCode(inputPath: string, outputPath: string, resultLanguage: string) {