2 releases

0.1.1 Aug 5, 2023
0.1.0 Jul 28, 2023

#520 in Date and time

Apache-2.0

260KB
403 lines

Time Tracker

This is a command-line time-tracking tool that allows you to manually or automatically time-track your activity.

Install

cargo install track-time

Manual tracking

In order to manually start time-tracking:
track-time start --project <project_name>

To stop time-tracking:
track-time stop --project <project_name>

Preview:

Watcher tracking

In order to automatically time-track activity for a path:
track-time watch --project <project_name> --path <folder_path>

Watcher flags user as inactive after a timeout period. Timeout time unit is in seconds, and the amount can be changed in root Config.toml file.

Preview:

This functionality is based on filesystem notification crate notify.

Report

You can preview your projects and see total time for a single project.
To preview all projects:
track-time projects

To preview tracked time of a project:
track-time show --project <project_name>

Preview:

Project 'Hello world'
------------------------------------------------------
Started (UTC)        Stopped (UTC)        Duration (min)

Mar 11 2023 12:46    Mar 11 2023 12:46    50
------------------------------------------------------
Total: 50 min

Dependencies

~35MB
~573K SLoC