LuabeginnercliAI generated

Command-Line To-Do List Manager in Lua

Build a terminal to-do list manager that adds, completes, and removes tasks, persisting them to a plain-text file between runs. Learners practice Lua tables, string formatting, file I/O, and basic command parsing.

Estimate
~6.5h
Steps
5
Completed by
0
Proposed by
codeseed.app

Lua standard library

Project roadmap

  1. 01

    Set up the script structure

    ~1h

    Create the main Lua script and define a table to hold tasks in memory.

  2. 02

    Implement file persistence

    ~1.5h

    Write functions to load tasks from and save tasks to a local text file using io.open.

  3. 03

    Add task commands

    ~2h

    Implement add, complete, and remove commands driven by command-line arguments (arg table).

  4. 04

    Format output

    ~1h

    Pretty-print the task list with status markers and numbering using string.format.

  5. 05

    Test edge cases

    ~1h

    Handle an empty file, invalid task numbers, and duplicate tasks.

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~6.5h · 5 steps

Tech stack

Lua standard library