luritodos
v1.0.1
Published
A simple todos CLI that helps you add tasks, categories, and visualize your progress.
Downloads
2
Readme
luri-todos-cli
luri-todos-cli
is a simple command-line interface (CLI) tool to manage your todos. It allows you to add tasks, manage categories, list tasks, mark tasks as done, and visualize task completion. This tool helps you keep your tasks organized and track your progress visually.
JSON Structure
The tool uses a todos.json
file to store tasks and categories. Here is a basic structure of the todos.json
file:
{
"categories": {
"example-category": [
{
"task": "Sample task 1",
"done": false
},
{
"task": "Sample task 2",
"done": true
}
]
}
}
Explanation
categories
: An object where each key is a category name.example-category
: An example category that contains an array of tasks.task
: The description of the task.done
: A boolean indicating whether the task is completed.
Commands
add-category <name>
Adds a new category.
npx luritodos add-category <name>
add <task> -c <name>
Adds a new task to a specified category. If the category doesn’t exist, it will be created.
npx luritodos add "Task description" -c <category>
list -c <name>
Lists all tasks in a specified category. If no category is specified, lists tasks from all categories.
npx luritodos list -c <category>
done <category> <index>
Marks a task as done based on its index in the specified category.
npx luritodos done <category> <index>
remove-category <name>
Removes a specified category. All tasks in the category will be deleted.
npx luritodos remove-category <name>
visual
Displays a visualization of task completion for all categories.
npx luritodos visual