Once you finish a piece of work, you can reflect that progress in Gestor de Tareas by marking the corresponding task as completed. Selecting option 3 from the main menu automatically displays the full task list first — so you always have the correct index in front of you — and then prompts you for the number of the task you want to mark done. The change is written toDocumentation 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 immediately, and the task will show the ✔ Completada badge the next time you list your tasks.
Workflow
Run the application
Open a terminal in the directory that contains The main menu is displayed:
index.py and start the program:Select option 3
At the prompt, type The application automatically calls
3 and press Enter:listarTask() and prints your current tasks before asking for input.Review the task list and enter the task number
The current task list is shown. Identify the number of the task you want to complete, then enter it and press Enter:
Full terminal example
The following example starts with two pending tasks and marks the first one as completed:What happens internally
When you enter a valid task number, the application callstareaCompletada(index):
cargarTask()reads the current contents ofTareas.jsoninto a Python list.- The function checks that the provided
indexsatisfies0 < index <= len(tasks). If so, it setstasks[index - 1]["completed"] = True. guardarTask(tasks)writes the entire updated list back toTareas.json, persisting the change immediately.- The confirmation message
Tarea marcada como completada.is printed.
JSON before and after
"completed" field changes; all other fields and all other tasks remain untouched.
Error handling
Option 3 handles two error conditions:-
Invalid index: If you enter a number that is less than
1or greater than the total number of tasks,tareaCompletadaprints the following and makes no changes to the file: -
Non-integer input: If you type something that is not a whole number (for example
abcor1.5), theValueErroris caught and the following message is printed instead:
Marking a task as completed is a one-way operation through the menu. There is no built-in option to revert a task back to Pending. If you need to undo a completion, you must manually open
Tareas.json in a text editor and change the relevant "completed" value from true back to false.