feat: add pausing of timers

This commit is contained in:
Moritz Böhme 2023-07-30 22:22:34 +02:00
parent 8bbb6c9113
commit bd91ea9d90
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 60 additions and 3 deletions

View file

@ -40,6 +40,12 @@ pub enum Command {
/// List timers
#[clap(visible_alias = "l")]
List,
/// Toggle timer
#[clap(visible_alias = "t")]
Toggle {
/// name of the timer to toggle
name: String
},
/// Remove a timer
#[clap(visible_alias = "r")]
Remove {
@ -83,6 +89,9 @@ pub enum PomodoroCommand {
/// List the pomodoro settings and remaining duration
#[clap(visible_alias = "l")]
List,
/// Toggle pomodoro
#[clap(visible_alias = "t")]
Toggle
}
fn get_stream(socket_path: &String) -> Result<UnixStream> {