passiomatic / coldsweat

Web RSS aggregator and reader compatible with the Fever API
MIT License
146 stars 21 forks source link

"python sweat.py setup" is now scriptable #79

Closed SkyCrawl closed 9 years ago

SkyCrawl commented 9 years ago

PR in accordance with #78

New concept When standard input is a terminal (input is coming from a terminal/user, I suspect), getpass is used to read the passwords. Otherwise they are read using standard methods that do not require a terminal and allow scripting (passing standard input directly). Effectively, passwords should now always be read - whether the user's input is handled by a terminal or not (the previous solution may have been incompatible with some platforms and shells).

Solution taken from this page. Tested both approaches and both work :).

passiomatic commented 9 years ago

Merged manually in e74fe2b2ccfe558e8c1a446e80efc6f140090bb2.