architv / soccer-cli

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

Watch feature #56

Open cstyan opened 8 years ago

cstyan commented 8 years ago

Having a built in watch feature so you can run once with --live and just leave the program running would be nice. Running through bash watch removes all your nice formatting and colour.

Saturn commented 8 years ago

Really nice idea. I admit I haven't ever tried the --live option. Or at least when I have there has been no live matches happening at that time.

Presumably it could be done by a blocking function that polls the API every so often and prints out any changes?

cstyan commented 8 years ago

As far as I can tell live just prints out the current scores for all games being played that day. It will also print games that haven't started yet and what their start time is. Having a periodic call and clearing/printing the new data would work.

andyg7 commented 7 years ago

Has this feature been completed or is someone working on it? Was thinking I could take a stab if not. Thanks :) Andy

carlosvargas commented 7 years ago

I know we had PR #88, but it never got merged. You might want to take a look there and see if @tusharmakkar08 wants to update it or abandon it.