| Crates.io | rtw |
| lib.rs | rtw |
| version | 2.3.1 |
| created_at | 2019-12-26 17:06:09.09068+00 |
| updated_at | 2022-06-06 19:31:48.805724+00 |
| description | time tracker command line tool |
| homepage | |
| repository | https://github.com/PicoJr/rtw |
| max_upload_size | |
| id | 192503 |
| size | 169,332 |
| Branch | Status |
|---|---|
| master |
Command-line interface (CLI) time tracker.
CLI usage is stable, underlying API is not stable.
Note: This software is built specifically as a productivity tool for myself, not as a consumer resource. I cannot commit a large amount of time to maintaining this software but I'll do my best to provide support if something fails =).
This project is heavily inspired from Timewarrior.
For a stable feature-rich CLI time tracker, please use Timewarrior: https://timewarrior.net/.
Supported OS: Linux, MacOS, Windows
CI runs on ubuntu-latest, macos-latest, windows-latest.
Note: Windows support is only experimental. Some features may not be supported on Windows.
cargo install rtw
rtw compiles with Rust 1.42.0 (stable) or newer.
Clone and build from source:
git clone https://github.com/PicoJr/rtw.git
cd rtw
cargo build --release
Download the corresponding archive from the Release page.
Please see shell completion.
# starship.toml
[custom.rtw]
command = """ rtw status --format "{ongoing} {human_duration}" """
when = "test -f ~/.rtw.json"
shell = ["bash", "--noprofile", "--norc"]
~/.rtw.json is the file where
rtwstores ongoing activities
Please see the CHANGELOG for a release history.
Example:
rtw start "learn rust"
Example output:
Tracking learn rust
Started 2019-12-25T19:43:00
rtw
Example output:
Tracking learn rust
Total 01:15:00
rtw stop
Example output:
Recorded learn rust
Started 2019-12-25T19:43:00
Ended 2019-12-25T21:00:00
Total 01:17:000
rtw summary
Example output:
read the doc 2019-12-25T11:49:30 2019-12-25T11:53:36 00:04:246
eat cookies 2019-12-25T12:08:49 2019-12-25T12:12:14 00:03:204
rtw day
Example output (YMMV):

For further details see Full Usage.
RTW doesn't create the config file for you, but it looks for one in the following locations (in this order):
$XDG_CONFIG_HOME/rtw/rtw_config.json$HOME/.config/rtw/rtw_config.json$XDG_CONFIG_HOME/.config/rtw_config.json$HOME/.config/rtw_config.jsonsee example folder for a default config file.
RTW relies on json files for persistence.
Default location is the home (~) directory.
~/.rtw.json # stores current activity
~/.rtwh.json # stores finished activities
there is currently no file locking mechanism: running several rtw commands at the same time
may lead to undefined behavior.