A simple command-line to-do list manager written in C using SQLite for persistent storage.
- Add new tasks
- List all existing tasks
- Lightweight and fast
- Uses SQLite as the local database
- Easy to extend
- GCC or any C compiler
- SQLite3 development libraries installed (
libsqlite3-dev
on Debian/Ubuntu) - Make (optional, if you plan to use a Makefile)
git clone https://github.com/yourusername/to-do-cli.git
cd to-do-cli
gcc main.c -lsqlite3 -o todo
If you have a separate support.c
file (e.g., for helper functions like equals
or the callback):
gcc main.c support.c -lsqlite3 -o todo
./todo <command> [arguments]
Command | Description |
---|---|
list or l |
List all tasks in the database |
new or n |
Add a new task |
./todo list
./todo new "Buy groceries"