Skip to main content

Documentation 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.

The listing feature gives you a complete snapshot of everything currently stored in 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

1

Run the application

Open a terminal in the directory that contains index.py and start the program:
python index.py
The main menu is displayed:
Gestor de Tareas
1. Agregar tarea
2. Listar tareas
3. Marcar tarea como completada
4. Eliminar tarea
5. Salir
2

Select option 2

At the prompt, type 2 and press Enter:
Seleccione una opción: 2
The full task list is printed to the terminal immediately.

Example output

The following example shows a list with three tasks in mixed states — two pending and one completed:
1. Comprar leche - Ir al supermercado [✘ Pendiente]
2. Estudiar Python - Repasar funciones [✔ Completada]
3. Llamar al médico - Pedir cita [✘ Pendiente]

Understanding the output format

Each line produced by listarTask() follows this pattern:
{index}. {titulo} - {descripcion} [{status}]
FieldDescription
indexA 1-based counter assigned at display time, starting from 1.
tituloThe title that was entered when the task was created.
descripcionThe description that was entered when the task was created.
status✔ Completada if completed is true; ✘ Pendiente if it is false.
The status badge is determined live from the "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 if Tareas.json does not exist — listarTask() prints a single informational message instead of a numbered list:
No hay tareas disponibles.
No further action is required; the main menu reappears automatically.
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.

Build docs developers (and LLMs) love