Skip to content

Andersonvb/todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

To-Do CLI App

A simple command-line to-do list manager written in C using SQLite for persistent storage.

Features

  • Add new tasks
  • List all existing tasks
  • Lightweight and fast
  • Uses SQLite as the local database
  • Easy to extend

Requirements

  • GCC or any C compiler
  • SQLite3 development libraries installed (libsqlite3-dev on Debian/Ubuntu)
  • Make (optional, if you plan to use a Makefile)

Installation

1. Clone the repository

git clone https://github.com/yourusername/to-do-cli.git cd to-do-cli

2. Compile

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

Usage

./todo <command> [arguments]

Commands

Command Description
list or l List all tasks in the database
new or n Add a new task

Examples

./todo list

./todo new "Buy groceries"

Example Output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages