@@ -28,8 +28,9 @@ export class CodegenCommand {
2828 _cli . success ( `Successfully created ${ filePath } ` ) ;
2929 } catch ( e ) {
3030 _cli . error ( e [ 'message' ] ) ;
31- return ;
3231 }
32+
33+ process . exit ( ) ;
3334 }
3435
3536 @Command ( 'make:controller {name}' , { desc : 'Command to create a controller' } )
@@ -50,8 +51,9 @@ export class CodegenCommand {
5051 _cli . success ( `Successfully created ${ filePath } ` ) ;
5152 } catch ( e ) {
5253 _cli . error ( e [ 'message' ] ) ;
53- return ;
5454 }
55+
56+ process . exit ( ) ;
5557 }
5658
5759 @Command ( 'make:service {name}' , { desc : 'Command to create a service' } )
@@ -67,8 +69,9 @@ export class CodegenCommand {
6769 _cli . success ( `Successfully created ${ filePath } ` ) ;
6870 } catch ( e ) {
6971 _cli . error ( e [ 'message' ] ) ;
70- return ;
7172 }
73+
74+ process . exit ( ) ;
7275 }
7376
7477 @Command ( 'make:job {name}' , { desc : 'Command to create a job' } )
@@ -90,8 +93,8 @@ export class CodegenCommand {
9093 } catch ( e ) {
9194 console . log ( e ) ;
9295 _cli . error ( e [ 'message' ] ) ;
93- return ;
9496 }
97+ process . exit ( ) ;
9598 }
9699
97100 @Command ( 'make:model {name}' , { desc : 'Command to create a model' } )
@@ -111,8 +114,8 @@ export class CodegenCommand {
111114 _cli . success ( `Successfully created ${ filePath } ` ) ;
112115 } catch ( e ) {
113116 _cli . error ( e [ 'message' ] ) ;
114- return ;
115117 }
118+ process . exit ( ) ;
116119 }
117120
118121 @Command ( 'make:repo {repoName} {modelFileName} {--without-interface}' , {
@@ -147,8 +150,9 @@ export class CodegenCommand {
147150 _cli . success ( `Successfully created ${ filePath } ` ) ;
148151 } catch ( e ) {
149152 _cli . error ( e [ 'message' ] ) ;
150- return ;
151153 }
154+
155+ process . exit ( ) ;
152156 }
153157
154158 @Command ( 'make:exception {name}' , {
@@ -166,8 +170,9 @@ export class CodegenCommand {
166170 _cli . success ( `Successfully created ${ filePath } ` ) ;
167171 } catch ( e ) {
168172 _cli . error ( e [ 'message' ] ) ;
169- return ;
170173 }
174+
175+ process . exit ( ) ;
171176 }
172177
173178 @Command ( 'make:resource {name}' , { desc : 'Command to create a service' } )
@@ -183,8 +188,9 @@ export class CodegenCommand {
183188 await CommandRunner . run ( `make:service ${ name } ` , { silent : true } ) ;
184189 } catch ( e ) {
185190 _cli . error ( e [ 'message' ] ) ;
186- return ;
187191 }
192+
193+ process . exit ( ) ;
188194 }
189195
190196 @Command ( 'make:event {name}' , {
@@ -206,8 +212,9 @@ export class CodegenCommand {
206212 _cli . success ( `Successfully created ${ filePath } ` ) ;
207213 } catch ( e ) {
208214 _cli . error ( e [ 'message' ] ) ;
209- return ;
210215 }
216+
217+ process . exit ( ) ;
211218 }
212219
213220 @Command (
@@ -232,8 +239,9 @@ export class CodegenCommand {
232239 _cli . success ( `Successfully created ${ filePath } ` ) ;
233240 } catch ( e ) {
234241 _cli . error ( e [ 'message' ] ) ;
235- return ;
236242 }
243+
244+ process . exit ( ) ;
237245 }
238246
239247 @Command (
@@ -256,8 +264,9 @@ export class CodegenCommand {
256264 _cli . success ( `Successfully created ${ filePath } ` ) ;
257265 } catch ( e ) {
258266 _cli . error ( e [ 'message' ] ) ;
259- return ;
260267 }
268+
269+ process . exit ( ) ;
261270 }
262271
263272 @Command ( 'make:mail {name}' , {
@@ -278,7 +287,8 @@ export class CodegenCommand {
278287 _cli . success ( `Successfully created ${ filePath } ` ) ;
279288 } catch ( e ) {
280289 _cli . error ( e [ 'message' ] ) ;
281- return ;
282290 }
291+
292+ process . exit ( ) ;
283293 }
284294}
0 commit comments