Simple timer tracker with CLI.
The idea was to experiment with argparser and CLI, no test was created for this project.
Just copy the folder and create a virtual environment.
python3.11 -m venv venv
source venv/bin/activate
pip install --upgrade pip
Make sure the file main.py
is executable.
chmod +x main.py
In case the virtual environment is not in the same folder,
the first line of main.py
has to be changed.
#!./venv/bin/python
# ^ change this to the actual python path.
import sys
...
Get help.
./main.py --help
./main.py project --help
./main.py task --help
./main.py timer --help
Create project.
./main.py project --add <project-name>
Create task.
./main.py task --add <task-name> <project-name or project-id>
Get all tasks available (@
will list all the projects).
./main.py task --list @
Start timer.
./main.py timer --start <task-name or task-id>
Check current status.
./main.py timer --status
Pause timer (This will save the timer).
./main.py timer --pause
Cancel timer (this will not save the timer).
./main.py timer --cancel