@@ -3,12 +3,11 @@ const jq = require('node-jq')
33
44const Repl = require ( './repl' )
55const { initializeContext} = require ( './sequelize-context' )
6- const { setModelsPath, getAll } = require ( './config' )
6+ const { setModelsPath, getAll} = require ( './config' )
77
88const _initialFlags = { }
99
1010class SequelizeTinkerCommand extends Command {
11-
1211 async run ( ) {
1312 const { flags, args} = this . parse ( SequelizeTinkerCommand )
1413
@@ -18,13 +17,13 @@ class SequelizeTinkerCommand extends Command {
1817
1918 // show config
2019 if ( args . firstArg === 'config' ) {
21- jq . run ( '.' , getAll ( ) , { input : 'json' } )
22- . then ( ( output ) => {
23- this . log ( output )
24- } )
25- . catch ( ( error ) => {
26- this . error ( error )
27- } )
20+ jq . run ( '.' , getAll ( ) , { input : 'json' } )
21+ . then ( output => {
22+ this . log ( output )
23+ } )
24+ . catch ( error => {
25+ this . error ( error )
26+ } )
2827 return
2928 }
3029
@@ -48,7 +47,7 @@ SequelizeTinkerCommand.flags = {
4847 // add --help flag to show CLI version
4948 help : flags . help ( { char : 'h' } ) ,
5049 // name: flags.string({ char: 'n', description: 'name to print' })
51- 'models-path' : flags . string ( { char : 'p' , description : ` Set Sequelize models's dir path.` } ) ,
50+ 'models-path' : flags . string ( { char : 'p' , description : ' Set Sequelize models\ 's dir path.' } ) ,
5251}
5352
5453SequelizeTinkerCommand . args = [
0 commit comments