timeweb-genie-neo
v1.2.0
Published
A CLI tool to calculate working hours logged in the Time@Web application
Downloads
17
Readme
Timeweb Genie Neo
A CLI tool to calculate working hours logged in the Time@Web application.
| :warning: WARNING | | -------------------------------------------- | | This is a beta release and errors may occur. |
Installation
Create a
~/.timeweb-genie.json
file (in your home directory):{ "timewebUrl": "https://.../TwNet.dll", "username": "...", "password": "..." }
Optional config options:
justificationTypesNotCountingAsWorkingTime
: Overwrite the default types to subtract from the working times (array of strings)targetWorkingHours
: Overwrite the default target working hours (number)targetBreakMinutes
: Overwrite the default lunch break time (number)
Simply run it with
npx timeweb-genie-neo
or for specific date range
npx timeweb-genie-neo 01/10/2022 31/10/2022
Contributing
Feel free to send a pull request if you want to add any features or if you find a bug. Check the issues tab for some potential things to do.
Development
# Install dependencies
yarn install
# Run typescript compiler in watch mode
# This generates js application in /dist folder
yarn dev
# Execute application
node dist/application.js
Debugging
Make sure to run the typescript compiler on watch mode by executing yarn dev
.
Add Jetbrains Run/Debug Configuration: