@@ -3,6 +3,7 @@ import { resolve as pathResolve } from 'path';
33import { TemplateConfigModel } from './template-config.model' ;
44
55export interface ConfigI {
6+ tempFilePath : string ;
67 outputPath : string ;
78 readonly exportPath : string ;
89 readonly outputModelsPath : string ;
@@ -12,6 +13,7 @@ export interface ConfigI {
1213}
1314
1415class ConfigModel implements ConfigI {
16+ private _tempFilePath : string ;
1517 private _outputPath : string ;
1618 private _outputBaseFolder : string = '' ;
1719 private _outputModelsFolder : string = 'models' ;
@@ -37,6 +39,14 @@ class ConfigModel implements ConfigI {
3739 return pathResolve ( this . exportPath , this . _outputApisFolder ) ;
3840 }
3941
42+ get tempFilePath ( ) : string {
43+ return this . _tempFilePath ;
44+ }
45+
46+ set tempFilePath ( tempFilePath : string ) {
47+ this . _tempFilePath = tempFilePath ;
48+ }
49+
4050 get template ( ) : string {
4151 if ( ! this . _template ) {
4252 throw 'No template defined' ;
@@ -84,6 +94,7 @@ class ConfigModel implements ConfigI {
8494
8595 parseYargs ( yargs ) : void {
8696 this . _outputPath = yargs . outputFolder ;
97+ this . tempFilePath = pathResolve ( yargs . saveFile ) ;
8798 this . template = yargs . template ;
8899 }
89100}
0 commit comments