mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 19:29:02 +00:00
Merge pull request #58 from resin-io/feature/tty-feedback
Quiet console.info if stdout is being redirected
This commit is contained in:
commit
142e2c0a65
@ -164,7 +164,7 @@
|
|||||||
}, function(callback) {
|
}, function(callback) {
|
||||||
var cli;
|
var cli;
|
||||||
cli = capitano.parse(process.argv);
|
cli = capitano.parse(process.argv);
|
||||||
if (cli.global.quiet) {
|
if (cli.global.quiet || !process.stdout.isTTY) {
|
||||||
console.info = _.noop;
|
console.info = _.noop;
|
||||||
}
|
}
|
||||||
if (cli.global.project != null) {
|
if (cli.global.project != null) {
|
||||||
|
@ -135,7 +135,7 @@ async.waterfall([
|
|||||||
(callback) ->
|
(callback) ->
|
||||||
cli = capitano.parse(process.argv)
|
cli = capitano.parse(process.argv)
|
||||||
|
|
||||||
if cli.global.quiet
|
if cli.global.quiet or not process.stdout.isTTY
|
||||||
console.info = _.noop
|
console.info = _.noop
|
||||||
|
|
||||||
if cli.global.project?
|
if cli.global.project?
|
||||||
|
Loading…
Reference in New Issue
Block a user