# elcio-vilonga/shiw architecture

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

- Interactive diagram: https://gitdiagram.com/elcio-vilonga/shiw
- Repository: https://github.com/elcio-vilonga/shiw

## Overview

SHIW is an educational Java CLI password manager. Its main workflow accepts menu choices in the application entry point, delegates credential operations to the manager, stores credentials in an in-memory list, and formats a final table. The README also documents register, list, view, edit, and remove capabilities. A separate `testes` class demonstrates file load/save, but persistence is not part of the documented main workflow. Evidence is limited to the README and sampled source; the manager and password implementation files were not excerpted.

Main entry points: [`src/src/co/protops/elvilon/Main.java`](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/Main.java) (Menu application), [`src/src/co/protops/elvilon/testes.java`](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/testes.java) (File load/save prototype), [`src/src/co/protops/elvilon/PrintBeauty.java`](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PrintBeauty.java) (Table formatter), [`src/src/co/protops/elvilon/PasswordManager.java`](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PasswordManager.java) (Password manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI workflow"]
  node_main["Menu application<br/>[Main.java]"]
  node_formatter["Table formatter<br/>[PrintBeauty.java]"]
end

subgraph group_credentials["Credential management"]
  node_manager["Password manager"]
  node_password["Credential record<br/>[Password.java]"]
end

subgraph group_prototype["Persistence prototype"]
  node_persistence["File load/save prototype<br/>[testes.java]"]
end

node_user(("CLI user"))

node_user -->|"chooses actions"| node_main
node_main -->|"delegates operations"| node_manager
node_main -->|"formats table"| node_formatter
node_formatter -->|"reads fields"| node_password
node_persistence -->|"uses registration and editing"| node_manager
node_persistence -->|"loads records"| node_password

click node_main "https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/Main.java"
click node_manager "https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PasswordManager.java"
click node_password "https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/Password.java"
click node_formatter "https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PrintBeauty.java"
click node_persistence "https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/testes.java"

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,node_formatter,node_user toneBlue
class node_manager,node_password toneAmber
class node_persistence toneMint
```

## Components

### CLI workflow

- [Menu application](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/Main.java): `src/src/co/protops/elvilon/Main.java`
- [Table formatter](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PrintBeauty.java): `src/src/co/protops/elvilon/PrintBeauty.java`

### Credential management

- [Password manager](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/PasswordManager.java): `src/src/co/protops/elvilon/PasswordManager.java`
- [Credential record](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/Password.java): `src/src/co/protops/elvilon/Password.java`

### Persistence prototype

- [File load/save prototype](https://github.com/elcio-vilonga/shiw/blob/main/src/src/co/protops/elvilon/testes.java): `src/src/co/protops/elvilon/testes.java`

### Other components

- **CLI user**

## Connections

- CLI user → Menu application: chooses actions (evidence: `src/src/co/protops/elvilon/Main.java`)
- Menu application → Password manager: delegates operations (evidence: `src/src/co/protops/elvilon/Main.java`)
- Menu application → Table formatter: formats table (evidence: `src/src/co/protops/elvilon/Main.java`)
- Table formatter → Credential record: reads fields (evidence: `src/src/co/protops/elvilon/PrintBeauty.java`)
- File load/save prototype → Password manager: uses registration and editing (evidence: `src/src/co/protops/elvilon/testes.java`)
- File load/save prototype → Credential record: loads records (evidence: `src/src/co/protops/elvilon/testes.java`)
