Skip to content

A console todo app written in C++ with file and DB persistence

Notifications You must be signed in to change notification settings

ShahidYousuf/cpp_todos

Repository files navigation

Todos App in C++

A console todo app 📌 written in C++ with file and DB persistence.

🚩 Next Target

👉 Command line option to choose DB or File persistence. Right now, by default, it has file persistence.

Build the project

g++ -o todo main.cpp --std c++17 

Following commands are supported, to know more about a command and its options, enter:

todo help
todo help -c list
todo help --command list
todo help -c create
Shows help and list of commands
todo
todo help
Create a new todo
todo create --title "Sample todo title."
List all todos
todo list
todo list --status complete
todo list --status pending
Get a single todo
todo get --index 5
todo get -i 5
Edit todo title
todo edit -i 5 -t "new updated todo title."
todo edit --index 5 --title "new updated todo title."
Delete todo
todo delete -i 5
todo delete --index 5
Mark a todo checked or completed
todo check -i 5
todo check --index 5
Mark a todo unchecked or pending
todo uncheck -i 5
todo uncheck --index 5
Sample todo list output. Don't mind the actual text here 😄

Sample todo list output

About

A console todo app written in C++ with file and DB persistence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published