The listing feature gives you a complete snapshot of everything currently stored inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FranksGP/Gestor_de_tareas/llms.txt
Use this file to discover all available pages before exploring further.
Tareas.json. Selecting option 2 from the main menu calls listarTask(), which reads the task file and prints every task on its own line — each one numbered and annotated with a status badge showing whether it is still pending or has already been completed. This view is also automatically displayed by options 3 and 4 before asking you for a task number, so you always have the current index in front of you when you need it.
Workflow
Run the application
Open a terminal in the directory that contains The main menu is displayed:
index.py and start the program:Example output
The following example shows a list with three tasks in mixed states — two pending and one completed:Understanding the output format
Each line produced bylistarTask() follows this pattern:
| Field | Description |
|---|---|
index | A 1-based counter assigned at display time, starting from 1. |
titulo | The title that was entered when the task was created. |
descripcion | The description that was entered when the task was created. |
status | ✔ Completada if completed is true; ✘ Pendiente if it is false. |
"completed" field in Tareas.json every time the list is printed, so it always reflects the latest state of each task.
Empty list case
If no tasks have been added yet — or ifTareas.json does not exist — listarTask() prints a single informational message instead of a numbered list:
The index number shown in the list is the same number you must enter when using option 3 (complete a task) or option 4 (delete a task). Indices are 1-based and are recalculated each time the list is displayed, so always list your tasks first to confirm the correct number before completing or deleting.