A simple yet powerful command-line todo application written in Go that helps you manage your tasks efficiently.
- Create and manage todos from the command line
- Store todos persistently (currently using CSV)
- Simple and intuitive command interface
- List all todos with their details
- Delete todos when completed
- Fast and lightweight
- Go 1.20 or higher
- Clone the repository:
git clone https://github.com/modev-23/todo-app.git- Navigate to the project directory:
cd todo-app- Build the application:
go build# Add a new todo
./todo-app add "Complete the project documentation"
# List all todos
./todo-app list
# Delete a todo by ID
./todo-app delete 1todo-app/
├── main.go
├── cmd/
│ └── root.go
├── internal/
│ ├── storage/
│ │ └── csv.go
│ └── models/
│ └── todo.go
├── go.mod
└── go.sum
Currently, the application uses CSV files for data persistence. The todos are stored in a local CSV file with the following structure:
id,title,created_at,completed
1,Complete documentation,2024-10-31T10:00:00Z,falseThe following features are planned for the next iteration:
-
Database Migration
- Replace CSV storage with BoltDB for improved performance and reliability
- Implement proper indexing for faster queries
-
Enhanced Todo Management
- Inline search functionality for quick todo lookup
- Mark todos as done without deleting them
- Todo categories and priorities
-
Interactive TUI
- Implementation of an interactive Terminal User Interface using the bubbletea package
- Visual task management
- Keyboard shortcuts for common operations
- Real-time updates and notifications
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
modev-23
Give a ⭐️ if this project helped you!