Skip to content

Commit

Permalink
Change default value of verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 20, 2019
1 parent 7e630d8 commit ebb95cb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,18 @@ The following options are also available.

## echo

_Type_: `boolean`<br> _Default_: same as [`verbose`](#verbose)
_Type_: `boolean`<br> _Default_: `true` for [`task()`](#taskfunction-options)
and [`exec()`](#execfunction-options), `false` for
[`stream()`](#streamfunction-options).

Whether the `command` should be printed on the console.
<br>[Full documentation](https://github.com/ehmicky/gulp-execa/blob/master/docs/API.md#echo).

## verbose

_Type_: `boolean`<br> _Default_: `true` when
[in CI](https://github.com/watson/is-ci) and
[`stream()`](#streamfunction-options) is not used. `false` otherwise.
_Type_: `boolean`<br> _Default_: `true` for [`task()`](#taskfunction-options)
and [`exec()`](#execfunction-options), `false` for
[`stream()`](#streamfunction-options).

Whether both the `command` and its output (`stdout`/`stderr`) should be printed
on the console.
Expand Down
10 changes: 6 additions & 4 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ _Type_: `object`

#### echo

_Type_: `boolean`<br> _Default_: same as [`verbose`](#verbose)
_Type_: `boolean`<br> _Default_: `true` for [`task()`](#taskfunction-options)
and [`exec()`](#execfunction-options), `false` for
[`stream()`](#streamfunction-options).

Whether the `command` should be printed on the console.

Expand All @@ -90,9 +92,9 @@ $ gulp audit

#### verbose

_Type_: `boolean`<br> _Default_: `true` when
[in CI](https://github.com/watson/is-ci) and
[`stream()`](#streamfunction-options) is not used. `false` otherwise.
_Type_: `boolean`<br> _Default_: `true` for [`task()`](#taskfunction-options)
and [`exec()`](#execfunction-options), `false` for
[`stream()`](#streamfunction-options).

Whether both the `command` and its output (`stdout`/`stderr`) should be printed
on the console.
Expand Down
3 changes: 1 addition & 2 deletions examples/stream.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ const { src } = require('gulp')
const { stream } = require('gulp-execa')

module.exports.default = () =>
src('**/*')
.pipe(stream(({ path }) => `echo ${path}`, { echo: true }))
src('**/*').pipe(stream(({ path }) => `echo ${path}`, { echo: true }))
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"core-js": "^3.1.0",
"execa": "sindresorhus/execa#c8a53da6748885423f73812580afd59699b36e31",
"fancy-log": "^1.3.3",
"is-ci": "^2.0.0",
"jest-validate": "^24.8.0",
"keep-func-props": "^1.3.2",
"plugin-error": "^1.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/options/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { validate } from 'jest-validate'
import isCi from 'is-ci'

import { isPlainObject, pickBy } from '../utils.js'
import { throwError, handleError } from '../error.js'
Expand Down Expand Up @@ -45,7 +44,7 @@ const validateOpts = function({ opts }) {
}

const DEFAULT_OPTS = {
verbose: isCi,
verbose: true,
}

const EXAMPLE_OPTS = {
Expand Down

0 comments on commit ebb95cb

Please sign in to comment.