Skip to content

Commit

Permalink
main, cli: code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
sgobotta committed Nov 17, 2019
1 parent 56517a8 commit 25268e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 7 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ example:
}

if (argv.length === 5) {
generateModel({ amountArg, fileName, modelArg, outputType: 'json' })
generateModel({
amountArg,
fileName,
modelArg,
inputType: 'json',
outputType: 'json'
})
} else {
printUsage()
}
6 changes: 1 addition & 5 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { description, homepage, name, version } from './package.json'
import generateModel from './lib'

const _generateModel = ({
amountArg, fileName, modelArg
}) => generateModel({ amountArg, fileName, modelArg, outputType: 'object' })

module.exports = {
description,
name,
version,
doc: `Nothing to do here. Visit ${homepage} for more information.`,
doc: `Visit ${homepage} for more information.`,
generateModel
}

0 comments on commit 25268e7

Please sign in to comment.