mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 17:01:04 +00:00
23 lines
398 B
CoffeeScript
23 lines
398 B
CoffeeScript
isQuiet = false
|
|
|
|
exports.setQuiet = (quiet) ->
|
|
isQuiet = !!quiet
|
|
|
|
exports.isQuiet = ->
|
|
return isQuiet
|
|
|
|
# stderr
|
|
exports.error = (args...) ->
|
|
console.error.apply(null, args)
|
|
|
|
exports.warning = (args...) ->
|
|
console.warn.apply(null, args)
|
|
|
|
# stdout
|
|
exports.info = (args...) ->
|
|
return if exports.isQuiet()
|
|
console.info.apply(null, args)
|
|
|
|
exports.out = (args...) ->
|
|
console.log.apply(null, args)
|