Skip to content

Commit 9cdf210

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export async function generateApi(
88
if (config.debug) {
99
consola.level = Number.MAX_SAFE_INTEGER;
1010
}
11+
if (config.silent) {
12+
consola.level = 0;
13+
}
1114
const codeGenProcess = new CodeGenProcess(config);
1215
return await codeGenProcess.start();
1316
}

0 commit comments

Comments
 (0)