You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+45-1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,50 @@ TODO
12
12
13
13
## Usage
14
14
15
+
16
+
### Define environment variables
17
+
18
+
Timmy uses environment variables to connect and sync to toggl and place time entries. You can define these variables in your `.bashrc` or `.zshrc` file.
19
+
20
+
```bash
21
+
# Timmy environment variables
22
+
# Optional, by default it will use $HOME/.timmy-entries
23
+
export TIMMY_PATH="path/to/.timmy-entries"
24
+
export TOGGL_WORKSPACE_ID="WORKSPACE_ID"
25
+
export TOGGL_API_TOKEN="API_TOKEN"
26
+
```
27
+
### Commands
28
+
29
+
`start` starts a new time entry with a task name `--task`.
30
+
31
+
```bash
32
+
timmy start --task "My task"
33
+
```
34
+
35
+
`stop` stops the current time entry.
36
+
37
+
```bash
38
+
timmy stop
39
+
```
40
+
41
+
`current` shows the current time entry, if any.
42
+
43
+
```bash
44
+
timmy current
45
+
```
46
+
47
+
`today` shows all time entries for today.
48
+
49
+
```bash
50
+
timmy today
51
+
```
52
+
53
+
`sync` syncs non-synced time entries with toggl, if you defined `TOGGL_WORKSPACE_ID` and `TOGGL_API_TOKEN` environment variables.
54
+
55
+
```bash
56
+
timmy sync
57
+
```
58
+
15
59
Just build and run the executable. It will create a `.timmy-entries` directory in your home directory and store all entries there.
0 commit comments