Track your working time with Trackrs a simple Time Tracking CLI.
This section provides some usage examples.
For more information see the cli help trackrs --help.
Execute trackrs start to add the initial entry.
After this the status is available.
Execute trackrs break to add a break entry.
Don't forget to contine after your break by executing trackrs continue.
Execute trackrs end to add an end entry and show the status for this day.
Execute trackrs status to get the current tracking status.
Status:
Work time: 03:20 (-05:30)
Online time: 03:10
Break: 00:10 (-00:20)
Started: 08:00
End: 16:30 (est.)
You can edit configuration by executing trackrs config --edit.
The config file is located at following location depending on the operating system.
| Platform | Value | Example |
|---|---|---|
| Linux | $HOME/.trackrs | /home/alice/.trackrs |
| macOS | $HOME/.trackrs | /Users/Alice/.trackrs |
| Windows | %USERPROFILE%/.trackrs | C:\Users\Alice.trackrs |
folder: the folder for the time tracker json files.threshold_limits: time in minutes which acts as threshold for the limits. In between this limits neitherstatusnorendwill calculate additional breaks.limits: staring from a specified amount of online timestartin minutes, a mandatoryminutesbreak is required. This is used bystatusandendto calculate the working time. Limitation: I suggest adding one more minute so thatstatusand expected break time can be calculated correctly.workperday: setup the normal work time for a day in minutes.
Example:
{
"folder": "/root",
"threshold_limits": 5,
"limits": [
{
"start": 361,
"minutes": 30
},
{
"start": 481,
"minutes": 45
},
{
"start": 601,
"minutes": 60
}
],
"workperday": {
"monday": 480,
"tuesday": 480,
"wednesday": 480,
"thursday": 480,
"friday": 480,
"saturday": 0,
"sunday": 0
}
}Current no automatic installation scripts or setups are available. Download the binary from release and place it somewhere on your harddrive. Will be added in the future maybe.
This project was developed with rust/cargo version 1.61.0.
Check rust-lang.org on how to install rust.
Use cargo install --path . to get every up and running.
Open this folder in VSCode. It should prompt to open a DevContainer and you are ready to go.
This repository uses semantic versioning and enforces conventional commits using Sailr.
Check craicover/sailr for installation instuctions.