tasg
Manage your tasks with tasg!
tasg is a simple command-line task manager written in Rust. It allows you to add, list, complete, and delete tasks, helping you stay organized.
Features
- Add New Tasks: Easily add tasks with descriptions.
- List Tasks: View all tasks or filter to see only incomplete tasks.
- Complete Tasks: Mark tasks as complete.
- Delete Tasks: Remove tasks when they are no longer needed.
Installation
-
Ensure you have Rust installed.
-
Clone the repository:
-
Build the project:
-
The compiled binary will be available in the
target/releasedirectory. To install it globally, use:
Uninstallation
To uninstall tasg, you can use Cargo to remove the installed binary:
Clean Up Configuration Files
After uninstalling, you may want to remove the configuration directory where tasg stores task data:
-
Linux:
-
Windows:
rd /s /q C:\Users\Annie\AppData\Roaming\tasg -
macOS:
Adjust the paths as necessary if your username or configuration directory differs.
Usage
tasg provides a straightforward CLI interface. Below are the available commands:
Add a Task
Add a new task with a description:
List Tasks
To list incomplete tasks:
To list all tasks, including completed ones:
Complete a Task
Mark a task as complete by specifying its ID:
Delete a Task
Remove a task by specifying its ID:
Nuke All Tasks
To delete all tasks (irreversible action), use:
You will be prompted to confirm this action.
Invalid Commands
If you enter an invalid command or missing arguments, tasg will display an error message to guide you.
Running Tests
tasg includes a comprehensive suite of tests. To run the tests, use:
Example
Here’s a step-by-step example of how to use tasg:
# Add a new task
# List all incomplete tasks
# Complete the task with ID 1
# List all tasks, including completed ones
# Delete the task with ID 1
# Verify the task has been deleted
Contributing
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. Ensure all tests pass before submitting your pull request.