feat: add pomodoro timer

This commit is contained in:
Moritz Böhme 2023-07-29 12:15:19 +02:00
parent dfd0b52d50
commit 103c6d779e
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 182 additions and 17 deletions

View file

@ -30,6 +30,16 @@ pub enum Command {
Remove {
name: String,
},
Pomodoro {
#[clap(default_value_t = 25)]
work_minutes: u64,
#[clap(default_value_t = 5)]
pause_minutes: u64,
#[clap(default_value_t = 10)]
long_pause_minutes: u64,
#[clap(default_value_t = 3)]
pauses_till_long: u64,
}
}
fn get_stream(socket_path: &String) -> Result<UnixStream> {