keithamus / hbs-cli

A CLI for handlebars
43 stars 26 forks source link

fix: Fixed misleading STDERR log when output being sent to STDOUT #45

Closed sburr closed 7 years ago

sburr commented 7 years ago

When you instruct the application to redirect output to STDOUT (as in hbs -s -D data.json template.hbs) you still get a stray debug message written to STDERR saying that the output was written to file. This is misleading and potentially problematic in pipelined scenarios (e.g. if you wanted hbs -s ... 2>&1 > output.json && something-else.sh < output.json)

keithamus commented 7 years ago

👍