# thiagorodsilva/rustwintool architecture

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

- Interactive diagram: https://gitdiagram.com/thiagorodsilva/rustwintool
- Repository: https://github.com/thiagorodsilva/rustwintool

## Overview

RustWinTool is a small interactive Windows command utility. Its workflow starts at the console UI, which displays the command catalog, accepts a selection or repair request, and delegates execution to the services layer. The repair option runs a fixed sequence of Windows repair commands; ordinary selections run one catalog command. The source also prints an external advanced-configuration command for the user to run separately. The README is empty, so capabilities and relationships here are based on the sampled source; no separate store or integration subsystem is shown.

Main entry points: [`src/ui.rs`](https://github.com/thiagorodsilva/rustwintool/blob/master/src/ui.rs) (Interactive UI), [`src/main.rs`](https://github.com/thiagorodsilva/rustwintool/blob/master/src/main.rs) (Application entry), [`src/services.rs`](https://github.com/thiagorodsilva/rustwintool/blob/master/src/services.rs) (Command services), [`src/shell.rs`](https://github.com/thiagorodsilva/rustwintool/blob/master/src/shell.rs) (Command catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Console user"))
node_entry["Application entry<br/>[main.rs]"]
node_ui["Interactive UI<br/>[ui.rs]"]
node_catalog["Command catalog<br/>[shell.rs]"]
node_services["Command services<br/>[services.rs]"]
node_powershell["PowerShell"]

node_user -->|"starts app"| node_entry
node_entry -->|"calls UI"| node_ui
node_user -->|"selects command"| node_ui
node_ui -->|"reads options"| node_catalog
node_ui -->|"runs commands"| node_services
node_services -->|"launches commands"| node_powershell

click node_entry "https://github.com/thiagorodsilva/rustwintool/blob/master/src/main.rs"
click node_ui "https://github.com/thiagorodsilva/rustwintool/blob/master/src/ui.rs"
click node_catalog "https://github.com/thiagorodsilva/rustwintool/blob/master/src/shell.rs"
click node_services "https://github.com/thiagorodsilva/rustwintool/blob/master/src/services.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_user,node_ui toneBlue
class node_entry,node_catalog,node_services toneTeal
class node_powershell toneIndigo
```

## Components

### Other components

- **Console user**
- [Application entry](https://github.com/thiagorodsilva/rustwintool/blob/master/src/main.rs): `src/main.rs`
- [Interactive UI](https://github.com/thiagorodsilva/rustwintool/blob/master/src/ui.rs): `src/ui.rs`
- [Command catalog](https://github.com/thiagorodsilva/rustwintool/blob/master/src/shell.rs): `src/shell.rs`
- [Command services](https://github.com/thiagorodsilva/rustwintool/blob/master/src/services.rs): `src/services.rs`
- **PowerShell**

## Connections

- Console user → Application entry: starts app (evidence: `src/main.rs`)
- Application entry → Interactive UI: calls UI (evidence: `src/main.rs`)
- Console user → Interactive UI: selects command (evidence: `src/ui.rs`)
- Interactive UI → Command catalog: reads options (evidence: `src/ui.rs`)
- Interactive UI → Command services: runs commands (evidence: `src/ui.rs`)
- Command services → PowerShell: launches commands (evidence: `src/services.rs`)
