An interactive CLI tool to calculate work time
Find a file
2023-11-14 19:41:09 +02:00
bin Add npmignore 2023-11-14 19:35:28 +02:00
src Fix many issues in calculation and improve output formatting 2023-11-14 17:03:18 +02:00
.editorconfig Initial commit 2023-11-11 15:13:20 +02:00
.eslintrc.json Initial commit 2023-11-11 15:13:20 +02:00
.gitignore Add npmignore 2023-11-14 19:35:28 +02:00
.npmignore Add npmignore 2023-11-14 19:35:28 +02:00
.prettierrc.json Initial commit 2023-11-11 15:13:20 +02:00
LICENSE.adoc Add license 2023-11-14 17:30:46 +02:00
Makefile Build package before release 2023-11-14 19:36:01 +02:00
package-lock.json 0.0.4 2023-11-14 19:41:09 +02:00
package.json 0.0.4 2023-11-14 19:41:09 +02:00
README.adoc Update readme 2023-11-14 19:18:52 +02:00
tsconfig.json Fix tsc target dir 2023-11-14 19:40:39 +02:00

Work time calculator

An interactive CLI tool to calculate work time.

Install

You can run this in your terminal

npm i -g work-time-calculator

If you get a permission denied error, you can run the previous command with sudo (not recommended), or you can set a local prefix to npm. Feel free to create the prefix wherever you like, this is just a location I decided to use. The only requirement is that the location needs to be readable and writable by your user.

npm config set prefix '~/.local/share/npm'

After that you can run the installation again. Running the program requires that you have your npm prefix in your $PATH. You can find an example of this in my dotfiles. This configuration file is for ZSH but should also work for bash.

After installation, you should be able to run the program with

wtc

Rationale

This is a highly opinionated CLI tool I built for my specific needs. In time, I will probable make it more generic and configurable. For now, the following assumptions are made.

  • You have an unpaid 30 minute lunch break

TODO

  • ❏ Configuration file for default settings and altering behaviour in interactive mode

  • ❏ Non-interactive mode with CLI arguments parsing