From ba6f7e4085e5dfcffe49bb6b8d097bafebd779e2 Mon Sep 17 00:00:00 2001 From: race604 Date: Fri, 5 Aug 2022 09:32:16 +0800 Subject: [PATCH] bump version to 0.3.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index afad3b7..3f7aad1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -100,7 +100,7 @@ dependencies = [ [[package]] name = "clock-tui" -version = "0.2.1" +version = "0.3.0" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index c400010..0c98925 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clock-tui" -version = "0.2.1" +version = "0.3.0" edition = "2021" license = "MIT" description = "A clock app in terminal" diff --git a/README.md b/README.md index 9912a2f..5c36a71 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,14 @@ The option `-d` or `--duration` to set time, for example `100s`, `5m`, `1h`, etc You can press `Space` key to _pause_ and _resume_ the timer. +The timer mode also accept additional command to run when the timer ends, for example: + +``` +tclock timer -d 25m -e terminal-notifier -title tclock -message "'Time is up!'" +``` + +Here we use [terminal-notifier](https://github.com/julienXX/terminal-notifier) to fire a notification when time is up. + ## Run stopwatch ```shell