Skip to content

Commit

Permalink
fix noColor
Browse files Browse the repository at this point in the history
  • Loading branch information
openhoat committed Aug 4, 2017
1 parent 2771acd commit 044fecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ language: node_js

node_js: 8.1.4

before_script:
- npm prune
- npm install
before_script: yarn

script: npm run coveralls
script: yarn run coveralls
4 changes: 2 additions & 2 deletions lib/grql.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function exec(opt, ...params) {
if (argv.nocolor) {
chalk.enabled = false
}
const renderOpts = _.pick(argv, ['yaml', 'nocolor'])
const renderOpts = { yaml: argv.yaml, noColor: argv.nocolor }
if (argv.help) {
cmd.showHelp(help => {
h.print.err(help)
Expand Down Expand Up @@ -302,7 +302,7 @@ const grql2 = async (...args) => {
case 'query':
return client.query(data, vars)
.then(result => {
h.render(result, { yaml: argv.yaml, noColor: argv.nocolor })
h.render(result, renderOpts)
})
case 'mutate':
return client.mutate(data, vars)
Expand Down

0 comments on commit 044fecd

Please sign in to comment.