File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ const generateTemplatesCommand = defineCommand({
53
53
} ,
54
54
} ,
55
55
run : async ( { args } ) => {
56
+ if ( args . debug ) consola . level = Number . MAX_SAFE_INTEGER ;
57
+ if ( args . silent ) consola . level = 0 ;
58
+
56
59
await generateTemplates ( {
57
60
cleanOutput : args [ "clean-output" ] ,
58
61
httpClientType : args [ "http-client" ] ,
@@ -270,6 +273,9 @@ const generateCommand = defineCommand({
270
273
} ,
271
274
} ,
272
275
run : async ( { args } ) => {
276
+ if ( args . debug ) consola . level = Number . MAX_SAFE_INTEGER ;
277
+ if ( args . silent ) consola . level = 0 ;
278
+
273
279
let customConfig = null ;
274
280
let customConfigPath : string | undefined ;
275
281
Original file line number Diff line number Diff line change 1
- import { consola } from "consola" ;
2
1
import type { GenerateApiConfiguration } from "../types/index.js" ;
3
2
import { CodeGenProcess } from "./code-gen-process.js" ;
4
3
5
4
export async function generateApi (
6
5
config : Partial < GenerateApiConfiguration [ "config" ] > ,
7
6
) {
8
- if ( config . debug ) {
9
- consola . level = Number . MAX_SAFE_INTEGER ;
10
- }
11
7
const codeGenProcess = new CodeGenProcess ( config ) ;
12
8
return await codeGenProcess . start ( ) ;
13
9
}
You can’t perform that action at this time.
0 commit comments