this is a simple task tracker written in c++
it uses json to store tasks in a file (.tasks) in users home directory ("$HOME")
idea from: https://roadmap.sh/projects/task-tracker
- clone this repo and cd to the project's folder.
- compile
/src/main.cpp
:
g++ src/main.cpp -o tt
- copy the output to ur binary folder:
sudo cp tt /usr/bin
tt add "task's description here"
this generates a random id for the task and adds it to the tasks data.
tt remove <task_id>
this removes the task related to the id you provide
you can find the id using list commands.
tt update <task_id> "new description"
this updates the existing task.
tt list
this will list all the tasks.
tt listw
this will list tasks which are marked as wip.
tt listd
this will list tasks which are marked as done.
tt markw <task_id>
mark a task as wip.
tt markd <task_id>
mark a task as done.
tt reset
this will overwrite the tasks data with an empty task array.
- make sure the tasks file exists if something went wrong:
it should be at/home/$USER/.tasks
- you can always regenerate tasks data using:
tt reset
- this project uses nlohmann json library to parse and modify tasks data
i made this project as a practice.
feel free to use the codes elsewhere.
i might later make a gui or some improvement.
<3