2020-10-14 23:50:05 +00:00
|
|
|
zeit
|
|
|
|
----
|
|
|
|
|
2020-10-16 00:33:21 +00:00
|
|
|
```
|
|
|
|
███████╗███████╗██╗████████╗
|
|
|
|
╚══███╔╝██╔════╝██║╚══██╔══╝
|
|
|
|
███╔╝ █████╗ ██║ ██║
|
|
|
|
███╔╝ ██╔══╝ ██║ ██║
|
|
|
|
███████╗███████╗██║ ██║
|
|
|
|
╚══════╝╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
|
2020-10-14 23:50:05 +00:00
|
|
|
Zeit erfassen. A command line tool for tracking time spent on tasks & projects.
|
|
|
|
|
2020-10-16 00:55:36 +00:00
|
|
|
![zeit](documentation/header.jpg)
|
|
|
|
|
2020-10-14 23:50:05 +00:00
|
|
|
## Build
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-14 23:50:05 +00:00
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-10-16 00:30:08 +00:00
|
|
|
Please make sure to `export ZEIT_DB=~/.config/zeit.db` (or whatever location
|
|
|
|
you would like to have the zeit database at).
|
2020-10-14 23:51:12 +00:00
|
|
|
|
2020-10-15 21:46:57 +00:00
|
|
|
### Track activity
|
2020-10-14 23:50:05 +00:00
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-14 23:50:05 +00:00
|
|
|
zeit track --help
|
|
|
|
```
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-14 23:50:05 +00:00
|
|
|
zeit track --project project --task task --begin -0:15
|
|
|
|
```
|
|
|
|
|
2020-10-15 21:46:57 +00:00
|
|
|
### Show current activity
|
2020-10-15 20:56:13 +00:00
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-15 20:56:13 +00:00
|
|
|
zeit tracking
|
|
|
|
```
|
|
|
|
|
2020-10-15 21:46:57 +00:00
|
|
|
### Finish tracking activity
|
2020-10-14 23:50:05 +00:00
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-14 23:50:05 +00:00
|
|
|
zeit finish --help
|
|
|
|
```
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-14 23:50:05 +00:00
|
|
|
zeit finish
|
|
|
|
```
|
|
|
|
|
2020-10-15 21:46:57 +00:00
|
|
|
### List tracked activity
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
```sh
|
2020-10-15 21:46:57 +00:00
|
|
|
zeit list
|
|
|
|
```
|
2020-10-16 00:04:42 +00:00
|
|
|
|
2020-10-16 00:21:51 +00:00
|
|
|
### Erase tracked activity
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zeit erase --help
|
|
|
|
```
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zeit erase 14037730-5c2d-44ff-b70e-81f1dcd4eb5f
|
|
|
|
```
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
### Import tracked activities
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zeit import --help
|
|
|
|
```
|
|
|
|
|
2020-10-16 00:30:08 +00:00
|
|
|
#### Tyme 3 JSON
|
|
|
|
|
|
|
|
It's possible to import JSON exports from [Tyme 3](https://www.tyme-app.com).
|
|
|
|
It is important that the JSON is exported with the following options set/unset:
|
|
|
|
|
|
|
|
![Tyme 3 JSON export](documentation/tyme3json.png)
|
|
|
|
|
|
|
|
- `Start`/`End` can be set as required
|
|
|
|
- `Format` has to be `JSON`
|
|
|
|
- `Export only unbilled entries` can be set as required
|
|
|
|
- `Mark exported entries as billed` can be set as required
|
|
|
|
- `Include non-billable tasks` can be set as required
|
|
|
|
- `Filter Projects & Tasks` can be set as required
|
|
|
|
- `Combine times by day & task` **must** be unchecked
|
|
|
|
|
|
|
|
During import, *zeit* will create SHA1 sums for every Tyme 3 entry, which
|
|
|
|
allows it to identify every imported activity. This way *zeit* won't import the
|
|
|
|
exact same entry twice. Keep this in mind if you change entries in Tyme and
|
|
|
|
then import them again into *zeit*.
|
|
|
|
|
2020-10-16 00:04:42 +00:00
|
|
|
Example:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zeit import --tyme ./tyme.export.json
|
|
|
|
```
|