@@ -19,6 +19,12 @@ const params = program
1919 . option ( '--exportCore <value>' ,  'Write core files to disk' ,  true ) 
2020 . option ( '--exportServices <value>' ,  'Write services to disk' ,  true ) 
2121 . option ( '--exportModels <value>' ,  'Write models to disk' ,  true ) 
22+  . option ( 
23+  '--exportKotlinModels <value>' , 
24+  'Write kotlin models to disk. If this option is set. Only Kotlin models will be generated.' , 
25+  false 
26+  ) 
27+  . option ( '--kotlinPackageName <value>' ,  'Name of the package for the generated Kotlin models.' ,  'com.models' ) 
2228 . option ( '--exportSchemas <value>' ,  'Write schemas to disk' ,  false ) 
2329 . option ( '--indent <value>' ,  'Indentation options [4, 2, tabs]' ,  '4' ) 
2430 . option ( '--postfix <value>' ,  'Deprecated: Use --postfixServices instead. Service name postfix' ,  'Service' ) 
@@ -28,7 +34,7 @@ const params = program
2834 . parse ( process . argv ) 
2935 . opts ( ) ; 
3036
31- const  OpenAPI  =  require ( path . resolve ( __dirname ,  '../dist/index .js' ) ) ; 
37+ const  OpenAPI  =  require ( path . resolve ( __dirname ,  './generator .js' ) ) ; 
3238
3339if  ( OpenAPI )  { 
3440 OpenAPI . generate ( { 
@@ -41,6 +47,8 @@ if (OpenAPI) {
4147 exportCore : JSON . parse ( params . exportCore )  ===  true , 
4248 exportServices : JSON . parse ( params . exportServices )  ===  true , 
4349 exportModels : JSON . parse ( params . exportModels )  ===  true , 
50+  exportKotlinModels : JSON . parse ( params . exportModels )  ===  true , 
51+  kotlinPackageName : params . kotlinPackageName , 
4452 exportSchemas : JSON . parse ( params . exportSchemas )  ===  true , 
4553 indent : params . indent , 
4654 postfixServices : params . postfixServices  ??  params . postfix , 
0 commit comments