architv / soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.
MIT License
1.09k stars 221 forks source link

Replace config.py with home folder .ini + handler functions #75

Closed thurask closed 8 years ago

thurask commented 8 years ago

Supersedes #73, so we don't have to write to protected folders.

If environment variable key is not specified, check home_folder/soccer-cli.ini for key. If file exists with key, load key from file and use that every time afterward. If file does not exist, record key from stdin, write that to file and use that every time afterward.

cc @Saturn @ueg1990

thurask commented 8 years ago

Added the --apikey command, and moved all print() to click.secho().