@@ -8,9 +8,9 @@ const resetConfigFile = async (filePath, templatePath = `${filePath}.template`)
88 await fs . writeFile ( filePath , templateData , "utf8" ) ;
99} ;
1010
11- const cleanUpTablesFolder = async ( ) => {
12- await fs . rm ( "src/config/tables " , { recursive : true } ) ;
13- await fs . mkdir ( "src/config/tables " ) ;
11+ const cleanUpDatabasesFolder = async ( ) => {
12+ await fs . rm ( "src/config/databases " , { recursive : true } ) ;
13+ await fs . mkdir ( "src/config/databases " ) ;
1414} ;
1515
1616const readline = require ( "readline" ) . createInterface ( {
@@ -20,11 +20,8 @@ const readline = require("readline").createInterface({
2020
2121readline . question ( "Do you want to reset existing tables, edges and schema colors? y/n\n" , async ( answer ) => {
2222 if ( answer . toLowerCase ( ) . includes ( "y" ) ) {
23- await resetConfigFile ( "src/config/edges.json" ) ;
24- await resetConfigFile ( "src/config/schemaColors.json" ) ;
25- await resetConfigFile ( "src/config/tablePositions.json" ) ;
26- await resetConfigFile ( "src/Visualizer/helpers/loadTables.ts" , "src/Visualizer/helpers/loadTables.ts.template.reset" ) ;
27- await cleanUpTablesFolder ( ) ;
23+ await resetConfigFile ( "src/config/databases.json" ) ;
24+ await cleanUpDatabasesFolder ( ) ;
2825
2926 console . log ( "Roger, everything is reset." ) ;
3027 } else {
0 commit comments