Skip to content

Commit b0386d5

Browse files
committed
Respect silent option by only logging errors
patch-1
1 parent 998078b commit b0386d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/generate-templates/templates-gen-process.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class TemplatesGenProcess {
3131
}
3232

3333
async start(): Promise<GenerateTemplatesOutput> {
34+
if(this.config.silent) consola.level = 0;
3435
consola.info('start generating source templates ".ejs" for code generator');
3536

3637
const templates = this.getTemplates();

0 commit comments

Comments
 (0)