cespare / reflex

Run a command when files change
MIT License
3.39k stars 136 forks source link

Add possibility to pass config from stdin if --config is set to '-' #8

Closed vanackere closed 10 years ago

vanackere commented 10 years ago

Hi, do you have a moment to review & perhaps include this small modification to reflex ? Thanks !

cespare commented 10 years ago

Could you briefly describe why you need this feature? Thanks!

vanackere commented 10 years ago

This is quite useful to make self-contained scripts using reflex (typically such a script will setup a lot of env vars, do some preparatory work and then run reflex at the end). Of course I can work around this by using temporary files but it seems much better to simply pass the instructions from stdin to reflex...

cespare commented 10 years ago

@vanackere Cool, LGTM.