raphaelkieling/devpair

Add timer support

raphaelkieling opened this issue · 1 comments

The idea is to give the devs the chance to a timer. We have some options:

For the first version, i do not see a problem on use something that already exists. The important points are:

  • Is it something default? If yes, what happens if cuckoo deprecate the timer?
  • Is it something optional? If yes, how make it easy to use and configurable?

Design ideas:

  • Using cuckoo directly
main > devpair start --timer-cuckoo
pair/main > 
Timer created: https://cuckoo.team/pair-main
Happy contributing :)
  • Using cuckoo as an option:
main > export DEVPAIR_TIMER=cuckoo
main > devpair start
pair/main > 
Timer created: https://cuckoo.team/pair-main
Happy contributing :)
  • Using sync timer as option:
    • beepy to make sound
    • tqdm to create the progress bar
main > devpair start 10
pair/main > 
The timer was created for 10 minutes.
Progress:  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇| Done
Next dev. 
# make a noise that the pair can hear
  • Accept a generic sync timer:
main > devpair timer 10
pair/main > 
The timer was created for 10 minutes.
Progress:  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇| Done
# make a noise that the pair can hear

Final proposal

WIP

Added on #2. Create a simple unix timer for now using devpair start <minutes>