⏱️⌛ rust-cli-pomodoro
Table of Contents
Demo
Motivation
Pomodoro technique is a time management method (Refer the link for more information). Typically 25 minutes works and 5 minutes break is one set. For me, while I'm working I found intentional break time is needed for the better performance and health (do some stretching 5 minutes). So I made it.
Features
A notification is consisted of work time and break time. Pomodoro manages timer using notification.
- Create notification with customized work and break time
- Queue the notification. Queued notification will start to run after previously registered notifications are finished
- Customize notification. Refer Using credential.json section
- Pretty print created notifications using
listcommand - Delete registered notification(s)
- Track delete notification(s) using
historycommand - Clear terminal
for more features, run pomodoro and type help!
pomodoro 1.0.0
Young
manage your time!
USAGE:
FLAGS:
SUBCOMMANDS:
How to use
Currently just clone this repo and run cargo run --release or build your self and use binary as you wish.
Using credential.json
pomodoro support slack notification.
To use it, you need to create credential.json file in somewhere in your local machine. credential.json supports two keys, slack and discrod.
The slack and discord value is json. It looks like this
For the slack notification, It uses chat.PostMessage API
To run pomodoro with credential.json, run the app like this.
# If the credential.json file exists in the current path
RoadMap
- Support mac os (>= 11.0.0) notification: Currently notify-rust uses mac-notification-sys but
mac-notification_sysdoesn't support recent mac version (as of 17:10 Sun 17 Oct 2021) - [o] Provide more notification delivery option: Currently pomodoro uses desktop notification. But notification could be delivered through slack, email or any kind of method.
- [v] slack integration
- [v] discord integration
- what else?
- Provide an easy way to use this app (brew, snap, cargo install, etc..)
- More rich notification: sound, app icon, hint, action etc
- [o] Write test cases
Compatibility
It depends on notify-rust support, so Linux, Mac (<= 11.0.0) and Windows (10, 8.1).