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
- 01
Set up the script structure
~1hCreate the main Lua script and define a table to hold tasks in memory.
- 02
Implement file persistence
~1.5hWrite functions to load tasks from and save tasks to a local text file using io.open.
- 03
Add task commands
~2hImplement add, complete, and remove commands driven by command-line arguments (arg table).
- 04
Format output
~1hPretty-print the task list with status markers and numbering using string.format.
- 05
Test edge cases
~1hHandle an empty file, invalid task numbers, and duplicate tasks.
Resources
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