|
3 | 3 | This cli gives functionality to work with data from the [Timeular Developer API](https://developers.timeular.com/public-api/) |
4 | 4 | that is fed by your [Timeular](https://timeular.com) device. |
5 | 5 |
|
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 | | - |
9 | 6 | # how to run |
10 | 7 |
|
11 | | -```sbt run export -o test.xls --start-time 2019-12-02 --end-time 2019-12-20``` |
12 | | - |
13 | 8 | 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. |
0 commit comments