https://github.com/shellshape/tracker
Simple tool to track time.
https://github.com/shellshape/tracker
Last synced: 11 months ago
JSON representation
Simple tool to track time.
- Host: GitHub
- URL: https://github.com/shellshape/tracker
- Owner: shellshape
- Created: 2024-04-17T10:59:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T16:48:39.000Z (11 months ago)
- Last Synced: 2025-03-01T06:51:48.089Z (11 months ago)
- Language: Rust
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tracker
A simple tool to track time.
## Usage
```
$ tracker --help
Simple tool to do time tracking
Usage: tracker [OPTIONS]
Commands:
add Add a track entry [aliases: a]
view Display tracking list entries [aliases: v]
delete Remove entries from a tracking list [aliases: d]
edit Edit an entry from a tracking list [aliases: e]
help Print this message or the help of the given subcommand(s)
Options:
-c, --config Path to a config file
-h, --help Print help
-V, --version Print version
```
## Install
You can either download the latest release builds form the [Releases page](https://github.com/shellshape/tracker/releases) or you can install it using cargo install.
```
cargo install --git https://github.com/shellshape/tracker
```
## Config
You can configure this tool via a config file either located in the current working directory named `tracker.toml` or in your [configuration directory](https://docs.rs/dirs/latest/dirs/fn.config_dir.html) in the directory `tracker/config.toml`. Instead of TOML, you can also write the config in YAML or JSON format.
| Key | Default | Description |
| ------------- | ---------------------- | ----------------------------------------------------------- |
| `storage_dir` | `$HOME/time_trackings` | Location where time tracking logs are stored and read from. |
| `round_steps` | | Duration to round the recorded time stamps on. |
| `start_regex` | `(?i)^start$` | Regular expression to identify start event from message. |
| `pause_regex` | `(?i)^pause$` | Regular expression to identify pause event from message. |
| `end_regex` | `(?i)^end$` | Regular expression to identify end event from message. |