fabtools / fabtools

Tools for writing awesome Fabric files
http://fabtools.readthedocs.org/
BSD 2-Clause "Simplified" License
1.25k stars 206 forks source link

Why the calls to `fabric.api.hide`? #172

Open artnez opened 11 years ago

artnez commented 11 years ago

Why does the library assume the user's output preference? As it is now, I need to wrap many calls to fabtools in with show(...).

ronnix commented 11 years ago

Hi Artem,

Thanks for using Fabtools!

What Fabtools attempts to do is the following: – commands without a side-effect, whose goal is reading some remote state are hidden – commands with a side-effect, whose goal is changing some remote state should always be shown

This way, when the desired target state is already reached, the output is mostly quiet.

It's somewhat opinionated, so it may not match your constraints or expectations, sorry about that.

Maybe we could have a kind of verbose flag to show everything?

Tell me what you think.