File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11interface Config {
2- EMULATE_STREAMING : boolean
3- LOGGING_ENABLED : boolean
42 PORT : number
53 PORT_RANGE : [ number , number ]
64}
75
86const DEFAULT_CONFIG : Config = {
9- EMULATE_STREAMING : false ,
10- LOGGING_ENABLED : false ,
117 PORT : 4141 ,
128 PORT_RANGE : [ 4142 , 4200 ] ,
139}
Original file line number Diff line number Diff line change @@ -16,8 +16,19 @@ const main = defineCommand({
1616 default : "4141" ,
1717 description : "Port to listen on" ,
1818 } ,
19+ verbose : {
20+ alias : "v" ,
21+ type : "boolean" ,
22+ default : false ,
23+ description : "Enable verbose logging" ,
24+ } ,
1925 } ,
2026 async run ( { args } ) {
27+ if ( args . verbose ) {
28+ consola . level = 5
29+ consola . info ( "Verbose logging enabled" )
30+ }
31+
2132 const portInt = parseInt ( args . port , 10 )
2233
2334 const port = await initializePort ( portInt )
You can’t perform that action at this time.
0 commit comments