Skip to content

Commit 8d8f692

Browse files
committed
version 0.1
1 parent 54bd0f1 commit 8d8f692

File tree

2 files changed

+58
-6
lines changed

2 files changed

+58
-6
lines changed

README.md

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,63 @@
33
This cli gives functionality to work with data from the [Timeular Developer API](https://developers.timeular.com/public-api/)
44
that is fed by your [Timeular](https://timeular.com) device.
55

6-
Currently, you can create xls exports of your data in a format that in compatible with SAP CATS to make it easier to
7-
report your working time.
8-
96
# how to run
107

11-
```sbt run export -o test.xls --start-time 2019-12-02 --end-time 2019-12-20```
12-
138
either set the `TIMEULAR_API_KEY` and `TIMEULAR_API_SECRET` environment variables, or supply `--api-key` or `--api-secret` cli params.
9+
10+
Full usage instructions:
11+
12+
```
13+
Usage: timeular-cli [start|stop|list-activities|export] [options] <args>...
14+
15+
--api-key <value> The timeular API key.
16+
--api-secret <value> The timeular API secret.
17+
--api-server <value> The timeular API server.
18+
-o, --output-format <value>
19+
The output format to be used.
20+
-f, --output-file <value>
21+
The file to export to. Skip for writing to stdout. Writing to stdout for binary formats (such as xls) is currently not supported.
22+
-k, --output-options <value>
23+
The output options for the format. Depends on the specific output format. Try e.g. 'report=true'
24+
Command: start activity
25+
start tracking an activity
26+
activity
27+
Command: stop [activity]
28+
stop tracking an activity
29+
activity
30+
Command: list-activities
31+
list the activities known to timeular
32+
Command: export [options]
33+
stop tracking an activity
34+
--start-time Start time of when the export starts.
35+
--end-time End time of when the export ends.
36+
```
37+
38+
Example calls: `TIMEULAR_API_KEY` and `TIMEULAR_API_SECRET` are set beforehand.
39+
Create an xls file report that you can copy-paste to SAP CATS.
40+
```
41+
timeular-cli export --start-time 2019-12-01 --end-time 2019-12-20 -o xls -f test.xls --output-options report=true
42+
```
43+
44+
Report as text, only if you worked too much.
45+
```
46+
timeular-cli export --start-time 2019-12-01 --end-time 2019-12-20 -o text
47+
```
48+
49+
Export all your data to xls
50+
```
51+
timeular-cli export --start-time 2019-12-01 --end-time 2019-12-20 -o xls -f test.xls
52+
```
53+
54+
Export all your data to csv
55+
```
56+
timeular-cli export --start-time 2019-12-01 --end-time 2019-12-20 -o csv -f test.csv
57+
```
58+
59+
See all logged entries in the given time frame, as text, on the console
60+
```
61+
timeular-cli export --start-time 2019-12-01 --end-time 2019-12-20 -o text --output-options report=true
62+
```
63+
64+
There are some "rather versionless" artifacts in the github releases.
65+
I expect them not to work properly, nor to be well-documented.

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := """timeular-cli"""
22

3-
version := "0.1-SNAPSHOT"
3+
version := "0.1"
44

55
scalaVersion := "2.13.1"
66

0 commit comments

Comments
 (0)