# ghosthwwkk/gestortareas architecture

> Architecture diagram of the GitHub repository ghosthwwkk/gestortareas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ghosthwwkk/gestortareas
- Repository: https://github.com/ghosthwwkk/gestortareas

## Overview

This is a small, in-memory Rust task manager with a console menu. The user adds tasks, lists them, or marks one complete; all task state lives in a vector for the duration of the process. The source also shows input validation and task-number checking. The repository contains only the entry-point file, so the graph reflects its combined responsibilities rather than inventing separate modules or persistent storage.

Main entry points: [`src/main.rs`](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs) (Menu loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console_app["Console task manager"]
  node_main_loop["Menu loop<br/>[main.rs]"]
  node_console_input["Console input<br/>[main.rs]"]
end

subgraph group_task_operations["Task operations"]
  node_task_list[("In-memory tasks<br/>[main.rs]")]
  node_add_task["Add task<br/>[main.rs]"]
  node_list_tasks["List tasks<br/>[main.rs]"]
  node_complete_task["Complete task<br/>[main.rs]"]
end

node_user(("User"))

node_user -->|"selects action"| node_main_loop
node_main_loop -->|"reads choice"| node_console_input
node_main_loop -->|"dispatches"| node_add_task
node_main_loop -->|"dispatches"| node_list_tasks
node_main_loop -->|"dispatches"| node_complete_task
node_main_loop -->|"initializes"| node_task_list
node_add_task -->|"reads description"| node_console_input
node_add_task -->|"appends task"| node_task_list
node_list_tasks -->|"reads tasks"| node_task_list
node_complete_task -->|"displays choices"| node_list_tasks
node_complete_task -->|"reads number"| node_console_input
node_complete_task -->|"marks complete"| node_task_list

click node_main_loop "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"
click node_console_input "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"
click node_task_list "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"
click node_add_task "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"
click node_list_tasks "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"
click node_complete_task "https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main_loop,node_console_input,node_user toneBlue
class node_task_list,node_add_task,node_list_tasks,node_complete_task toneAmber
```

## Components

### Console task manager

- [Menu loop](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`
- [Console input](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`

### Task operations

- [In-memory tasks](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`
- [Add task](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`
- [List tasks](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`
- [Complete task](https://github.com/ghosthwwkk/gestortareas/blob/master/src/main.rs): `src/main.rs`

### Other components

- **User**

## Connections

- User → Menu loop: selects action (evidence: `src/main.rs`)
- Menu loop → Console input: reads choice (evidence: `src/main.rs`)
- Menu loop → Add task: dispatches (evidence: `src/main.rs`)
- Menu loop → List tasks: dispatches (evidence: `src/main.rs`)
- Menu loop → Complete task: dispatches (evidence: `src/main.rs`)
- Menu loop → In-memory tasks: initializes (evidence: `src/main.rs`)
- Add task → Console input: reads description (evidence: `src/main.rs`)
- Add task → In-memory tasks: appends task (evidence: `src/main.rs`)
- List tasks → In-memory tasks: reads tasks (evidence: `src/main.rs`)
- Complete task → List tasks: displays choices (evidence: `src/main.rs`)
- Complete task → Console input: reads number (evidence: `src/main.rs`)
- Complete task → In-memory tasks: marks complete (evidence: `src/main.rs`)
