Skip to content

Latest commit

 

History

History
88 lines (77 loc) · 1.68 KB

README.md

File metadata and controls

88 lines (77 loc) · 1.68 KB

tt | tasktracker utility for linux 📝

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
usage

Installation

  1. clone this repo and cd to the project's folder.
  2. compile /src/main.cpp:
g++ src/main.cpp -o tt
  1. copy the output to ur binary folder:
sudo cp tt /usr/bin

Usage

add a new task

tt add "task's description here"

this generates a random id for the task and adds it to the tasks data.

remove a task

tt remove <task_id>

this removes the task related to the id you provide
you can find the id using list commands.

update a task

tt update <task_id> "new description"

this updates the existing task.

list tasks

list

tt list

this will list all the tasks.

listw

tt listw

this will list tasks which are marked as wip.

listd

tt listd

this will list tasks which are marked as done.

specify task's state

markw

tt markw <task_id>

mark a task as wip.

markd

tt markd <task_id>

mark a task as done.

reset tasks data

tt reset

this will overwrite the tasks data with an empty task array.

Possible issues/notices

  1. make sure the tasks file exists if something went wrong:
    it should be at /home/$USER/.tasks
  2. you can always regenerate tasks data using:
tt reset
  1. 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