From 333803ae99180ba7f3b1582d58cda5b0e6453828 Mon Sep 17 00:00:00 2001 From: oof1lab Date: Sat, 4 Nov 2017 13:46:45 +0000 Subject: [PATCH] Fix: reverting bin file. --- bin/index.js | 20 ++++++++++---------- lib/util/cmd.helper.js | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/index.js b/bin/index.js index 93e8a942bb..df945f5c63 100755 --- a/bin/index.js +++ b/bin/index.js @@ -4,7 +4,7 @@ const bodyParser = require('body-parser'); const express = require('express'); const sqlConfig = require('commander'); const mysql = require('mysql'); -const dataHelp = require('./lib/util/data.helper.js'); +//const dataHelp = require('./lib/util/data.helper.js'); const Xapi = require('./lib/xapi.js'); const cmdargs = require('./lib/util/cmd.helper.js'); @@ -29,11 +29,11 @@ let mysqlPool = mysql.createPool(sqlConfig); /**************** START : setup Xapi ****************/ -console.log(''); -console.log(''); -console.log(' Generating APIs at speed of your thoughts.. '); -console.log(''); -console.log(''); +// console.log(''); +// console.log(''); +// console.log(' Generating APIs at speed of your thoughts.. '); +// console.log(''); +// console.log(''); let t = process.hrtime(); let moreApis = new Xapi(sqlConfig,mysqlPool,app); @@ -44,10 +44,10 @@ moreApis.init((err, results) => { var t1 = process.hrtime(t); var t2 = t1[0]+t1[1]/1000000000 - console.log('| |'); - console.log("| xmysql took : %d seconds",dataHelp.round(t2,1)); - console.log('| |'); - console.log(' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '); + // console.log('| |'); + // console.log("| xmysql took : %d seconds",dataHelp.round(t2,1)); + // console.log('| |'); + // console.log(' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '); }) /**************** END : setup Xapi ****************/ diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index 01e18ef238..05bd8237d7 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -11,7 +11,7 @@ program.on('--help', () => { }) program - .version('0.1.0') + .version('0.1.1') .option('-h, --host ', 'hostname') .option('-d, --database ', 'database schema name') .option('-u, --user ', 'username of database / root by default') diff --git a/package.json b/package.json index 8bc1c8dd42..e11da04277 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmysql", - "version": "0.1.0", + "version": "0.1.1", "description": "One command to generate REST APIs for any MySql database", "main": "index.js", "scripts": {