Crates.io | tasg |
lib.rs | tasg |
version | 0.1.2 |
source | src |
created_at | 2024-08-09 20:46:11.709112 |
updated_at | 2024-08-31 12:46:16.095044 |
description | Manage your tasks with tasg! |
homepage | |
repository | https://github.com/Ce11an/tasg |
max_upload_size | |
id | 1331498 |
size | 83,214 |
Install via Cargo:
cargo install tasg
First delete the tasg
storage data (irreversible action):
tasg nuke
To uninstall tasg
, you can use Cargo to remove the installed binary:
cargo uninstall tasg
tasg
provides a straightforward CLI interface. Below are the available commands:
Add a new task with a description:
tasg add "Your task description"
To list incomplete tasks:
tasg list
To list all tasks, including completed ones:
tasg list --all
Mark a task as complete by specifying its ID:
tasg complete <task_id>
Remove a task by specifying its ID:
tasg delete <task_id>
Edit a task by specifying its ID and a description:
tasg edit <task_id> --description "Your edited description"
To delete all tasks (irreversible action), use:
tasg nuke
You will be prompted to confirm this action.
If you enter an invalid command or missing arguments, tasg
will display an error message to guide you.
tasg
includes a comprehensive suite of tests. To run the tests, use:
cargo test
Here’s a step-by-step example of how to use tasg
:
# Add a new task
tasg add "Write README"
# List all incomplete tasks
tasg list
# Complete the task with ID 1
tasg complete 1
# List all tasks, including completed ones
tasg list --all
# Delete the task with ID 1
tasg delete 1
# Verify the task has been deleted
tasg list
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. Ensure all tests pass before submitting your pull request.