From 2cf411e2ae457201fbae26eaf0a51a1aad118a95 Mon Sep 17 00:00:00 2001 From: "Jens K." <47693+sectore@users.noreply.github.com> Date: Sat, 21 Dec 2024 18:00:46 +0100 Subject: [PATCH] more args: mode, style, decis (#20) --- README.md | 3 ++ src/app.rs | 44 +++++++++++++++-------------- src/args.rs | 60 +++++++++++++++++++++++++++++++++++++++- src/widgets/clock.rs | 35 ++++++----------------- src/widgets/countdown.rs | 5 ++-- src/widgets/footer.rs | 2 +- src/widgets/pomodoro.rs | 7 +++-- src/widgets/timer.rs | 5 ++-- 8 files changed, 103 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index 361f7d4..becc681 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,9 @@ Options: -c, --countdown Countdown time to start from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 10:00] -w, --work Work time to count down from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 25:00] -p, --pause Pause time to count down from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 5:00] + -d, --decis Wether to show deciseconds or not + -m, --mode Mode to start with: [t]imer, [c]ountdown, [p]omodoro [default: timer] [possible values: countdown, timer, pomodoro] + -s, --style