diff --git a/.travis.yml b/.travis.yml index a8461c3..9fd88bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/lib/grql.js b/lib/grql.js index 82a8b20..f95ba82 100644 --- a/lib/grql.js +++ b/lib/grql.js @@ -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) @@ -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)