feat: add pausing of timers
This commit is contained in:
parent
8bbb6c9113
commit
bd91ea9d90
4 changed files with 60 additions and 3 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue