Skip to content

Commit

Permalink
Reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Aug 22, 2017
1 parent 5344678 commit 4b23f83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/gest.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ try {
.then(values =>
Promise.all(values.map(v => {
const paths = v.replace(process.cwd(), '.').split('/')
// separate file from rest of path
const fileName = paths.pop()
const rep = paths.map(i => chalk.dim(i)).join('/') + chalk.dim('/') + fileName
const rep = chalk.dim(paths.concat('').join('/')).concat(fileName)
const spinner = ora({ text: rep, color: 'magenta' }).start()
return readFile(v)
.then(gest(schema, Object.assign(options, { verbose: false })))
Expand Down

0 comments on commit 4b23f83

Please sign in to comment.