# asier-17/upd architecture

> Architecture diagram of the GitHub repository asier-17/upd, 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/asier-17/upd
- Repository: https://github.com/asier-17/upd

## Overview

UPD is a Windows-oriented Python CLI that detects installed package managers, lists their outdated packages by default, or updates all or selected packages when requested. Its runtime is concentrated in UPD.py: command-line parsing selects the operation, manager availability is checked, and a shared executor invokes each manager’s configured commands. The README also documents the supported-manager set; the source excerpt shows those configurations and execution behavior. This small repository has no separately implemented domain subsystems.

Main entry points: [`UPD.py`](https://github.com/asier-17/upd/blob/master/UPD.py) (Command executor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI workflow"]
  node_arguments["Command options<br/>[UPD.py]"]
  node_availability["Manager detection<br/>[UPD.py]"]
  node_dispatch["Operation dispatch<br/>[UPD.py]"]
  node_executor["Command executor<br/>[UPD.py]"]
end

subgraph group_managers["Package managers"]
  node_winget["Winget<br/>[UPD.py]"]
  node_scoop["Scoop<br/>[UPD.py]"]
  node_pip["Pip<br/>[UPD.py]"]
  node_choco["Chocolatey<br/>[UPD.py]"]
  node_npm["npm<br/>[UPD.py]"]
end

node_user(("CLI user"))

node_user -->|"provides flags"| node_arguments
node_arguments -->|"selects operation"| node_dispatch
node_dispatch -->|"checks managers"| node_availability
node_dispatch -->|"dispatches work"| node_executor
node_executor -->|"runs commands"| node_winget
node_executor -->|"runs commands"| node_scoop
node_executor -->|"runs commands"| node_pip
node_executor -->|"runs commands"| node_choco
node_executor -->|"runs commands"| node_npm

click node_arguments "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_availability "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_dispatch "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_executor "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_winget "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_scoop "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_pip "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_choco "https://github.com/asier-17/upd/blob/master/UPD.py"
click node_npm "https://github.com/asier-17/upd/blob/master/UPD.py"

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_arguments,node_availability,node_dispatch,node_executor,node_user toneBlue
class node_winget,node_scoop,node_pip,node_choco,node_npm toneAmber
```

## Components

### CLI workflow

- [Command options](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Manager detection](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Operation dispatch](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Command executor](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`

### Package managers

- [Winget](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Scoop](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Pip](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [Chocolatey](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`
- [npm](https://github.com/asier-17/upd/blob/master/UPD.py): `UPD.py`

### Other components

- **CLI user**

## Connections

- CLI user → Command options: provides flags (evidence: `UPD.py`)
- Command options → Operation dispatch: selects operation (evidence: `UPD.py`)
- Operation dispatch → Manager detection: checks managers (evidence: `UPD.py`)
- Operation dispatch → Command executor: dispatches work (evidence: `UPD.py`)
- Command executor → Winget: runs commands (evidence: `UPD.py`)
- Command executor → Scoop: runs commands (evidence: `UPD.py`)
- Command executor → Pip: runs commands (evidence: `UPD.py`)
- Command executor → Chocolatey: runs commands (evidence: `UPD.py`)
- Command executor → npm: runs commands (evidence: `UPD.py`)
