{"id":22361338,"url":"https://github.com/kei-k23/todo-cli","last_synced_at":"2025-06-19T04:34:00.695Z","repository":{"id":254122744,"uuid":"845456181","full_name":"Kei-K23/todo-cli","owner":"Kei-K23","description":"This project is a command-line interface (CLI) application that allows you to manage tasks efficiently written C++.","archived":false,"fork":false,"pushed_at":"2024-08-21T14:31:17.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T16:21:16.124Z","etag":null,"topics":["clang","cli","command-line","cpp","management","todo-list"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kei-K23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T09:37:52.000Z","updated_at":"2025-03-14T02:37:42.000Z","dependencies_parsed_at":"2024-08-21T15:26:40.429Z","dependency_job_id":null,"html_url":"https://github.com/Kei-K23/todo-cli","commit_stats":null,"previous_names":["kei-k23/todo-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kei-K23/todo-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Ftodo-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Ftodo-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Ftodo-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Ftodo-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kei-K23","download_url":"https://codeload.github.com/Kei-K23/todo-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Ftodo-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260688001,"owners_count":23046826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clang","cli","command-line","cpp","management","todo-list"],"created_at":"2024-12-04T16:29:20.376Z","updated_at":"2025-06-19T04:33:55.671Z","avatar_url":"https://github.com/Kei-K23.png","language":"C++","readme":"# To-Do CLI Application\n\n## Overview\n\nThis project is a command-line interface (CLI) application that allows you to manage tasks efficiently written `C++`. It provides features to add, edit, delete, and mark tasks as complete. The tasks are saved to and loaded from a `.csv` file, ensuring data persistence between sessions. Additionally, tasks are displayed in a table format with text wrapping for better readability.\n\n## Features\n\n- **Add Task**: Create a new task with a unique ID, title, description, due date, and status.\n- **Mark Task as Complete**: Update the status of a task to \"COMPLETED\" by searching for its ID or title.\n- **Edit Task**: Modify the title, description, and due date of an existing task.\n- **Delete Task**: Remove a task by searching for its ID or title.\n- **List All Tasks**: Display all tasks in a table format with wrapped text to fit the columns.\n- **Save Tasks to CSV**: Save the current list of tasks to a `.csv` file.\n- **Load Tasks from CSV**: Load tasks from a `.csv` file at the start of the application.\n\n## File Structure\n\n- `main.cpp`: The main source file containing the implementation of the application.\n- `tasks.csv`: The CSV file where tasks are stored. This file is created automatically if it doesn't exist.\n\n## Getting Started\n\n### Prerequisites\n\nTo compile and run this program, you'll need:\n\n- A C++ compiler (e.g., `clang++`, `g++`)\n- A terminal or command prompt\n\n### Compilation\n\n1. Clone or download the repository to your local machine.\n2. Open your terminal or command prompt and navigate to the directory containing `main.cpp`.\n3. Compile the code using a C++ compiler. For example, using `clang++`:\n\n```bash\n# With clang++ compiler\nclang++ -std=c++20 main.cpp -o main\n# or with g++ compiler\ng++ main.cpp -o main\n```\n\n## How to Use\n\nUpon running the application, you'll be presented with a menu:\n\n1. Add Task: Follow the prompts to enter the task's title, description, and due date.\n2. Mark Task as Complete: Enter the task ID or title to mark it as \"COMPLETED\".\n3. Edit Task: Search for a task by ID or title, then update its details.\n4. Delete Task: Remove a task by entering its ID or title.\n5. List All Tasks: Display a table of all tasks with wrapped text in the description.\n6. Save the Tasks: Save the current tasks to tasks.csv.\n7. Save and Exit: Save the tasks to tasks.csv and exit the application.\n\n### Example\n\n```bash\n$ ./main\nMenu\n1. Add task\n2. Mark task as complete\n3. Edit task\n4. Delete task\n5. List all tasks\n6. Save and Exit\nEnter your choice: 1\nEnter title: task2\nEnter description: task2\nEnter due date: 2010-10-10\nSuccessfully added new task\n\nMenu\n1. Add task\n2. Mark task as complete\n3. Edit task\n4. Delete task\n5. List all tasks\n6. Save the tasks\n7. Save and Exit\nEnter your choice: 5\n+-------------------------------------------------------------------+\n| Id      | Title     | Description    | Due Date       | Status    |\n+-------------------------------------------------------------------+\n| FZXC0w  | task1     | task1 desc     | 2024/10/10     | PENDING   |\n+-------------------------------------------------------------------+\n| gYdxsJ  | task2     | task2          | 2010-10-10     | PENDING   |\n+-------------------------------------------------------------------+\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Ftodo-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkei-k23%2Ftodo-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Ftodo-cli/lists"}