Welcome to the Rust Task Manager project! 🚀 This project is a simple yet effective task manager implemented in Rust, designed for command-line use.
The Task
struct represents a task with the following attributes:
id: u32
- unique identifier for each task.title: String
- the title of the task.description: String
- a detailed description of the task.completed: bool
- indicates whether the task is completed or not.
The Task
struct includes methods for:
- Adding a new task.
- Listing all tasks.
- Editing a task.
- Deleting a task.
- Marking a task as completed.
The main
function provides a command-line interface to interact with the task manager. It includes options to add, list, edit, delete, mark as completed, and exit the program.
-
Add a Task
- Choose option
1
to add a new task. - Enter the title and description when prompted.
- Choose option
-
List All Tasks
- Choose option
2
to display a list of all tasks.
- Choose option
-
Edit a Task
- Choose option
3
and enter the task ID to edit the corresponding task. - Follow the prompts to update the title and description.
- Choose option
-
Delete a Task
- Choose option
4
and enter the task ID to delete the corresponding task.
- Choose option
-
Mark a Task as Completed
- Choose option
5
and enter the task ID to mark the corresponding task as completed.
- Choose option
-
Exit Program
- Choose option
6
to exit the program.
- Choose option
- Ensure you have Rust installed on your system.
- Clone this repository:
git clone https://github.com/JoelJaison394/Rust_Taskmanager.git cd rust-task-manager
- Run the project:
cargo run
Contributions are welcome! If you have any improvements or features to add, feel free to open an issue or submit a pull request.
Watch the live coding session where this project comes to life: Rust Task Manager Live Coding