# myrl0/conf_mng architecture

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

- Interactive diagram: https://gitdiagram.com/myrl0/conf_mng
- Repository: https://github.com/myrl0/conf_mng

## Overview

This repository is a staged command-line VFS emulator. The principal workflow accepts commands interactively in the earliest entry point or from a startup script in later stages, executes them, and prints results. Stages 3–5 initialize a JSON-backed in-memory filesystem and execute commands against it; stage 5 adds directory creation and moves. The README gives no further product description, so the graph reflects the sampled implementations and their documented stage descriptions.

Main entry points: [`src/vfs.py`](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py) (Command dispatch), [`src/pr3.py`](https://github.com/myrl0/conf_mng/blob/main/src/pr3.py) (Stage 3 runner), [`src/pr4.py`](https://github.com/myrl0/conf_mng/blob/main/src/pr4.py) (Stage 4 runner), [`src/pr5.py`](https://github.com/myrl0/conf_mng/blob/main/src/pr5.py) (Stage 5 runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI stages"]
  node_interactive["Interactive entry<br/>[main.py]"]
  node_basic["Basic commands<br/>[pr1.py]"]
  node_script2["Stage 2 runner<br/>[pr2.py]"]
  node_script3["Stage 3 runner<br/>[pr3.py]"]
  node_script4["Stage 4 runner<br/>[pr4.py]"]
  node_script5["Stage 5 runner<br/>[pr5.py]"]
end

subgraph group_filesystem["Virtual filesystem"]
  node_vfs["VFS state<br/>[vfs.py]"]
  node_dispatch["Command dispatch<br/>[vfs.py]"]
  node_navigation["Navigation commands<br/>[vfs.py]"]
  node_fileops["File reading<br/>[vfs.py]"]
  node_mutations["Directory mutations<br/>[vfs.py]"]
end

subgraph group_inputs["Runtime inputs"]
  node_scriptinput["Startup script"]
  node_jsoninput["VFS JSON"]
end

node_user(("User"))

node_user -->|"enters commands"| node_interactive
node_interactive -->|"calls command"| node_basic
node_user -->|"starts runner"| node_script2
node_user -->|"starts runner"| node_script3
node_user -->|"starts runner"| node_script4
node_user -->|"starts runner"| node_script5
node_script2 -->|"reads script"| node_scriptinput
node_script2 -->|"calls command"| node_basic
node_script3 -->|"reads script"| node_scriptinput
node_script4 -->|"reads script"| node_scriptinput
node_script5 -->|"reads script"| node_scriptinput
node_script3 -->|"initializes VFS"| node_vfs
node_script4 -->|"initializes VFS"| node_vfs
node_script5 -->|"initializes VFS"| node_vfs
node_script3 -->|"executes commands"| node_dispatch
node_script4 -->|"executes commands"| node_dispatch
node_script5 -->|"executes commands"| node_dispatch
node_vfs -->|"loads JSON"| node_jsoninput
node_dispatch -->|"dispatches commands"| node_navigation
node_dispatch -->|"dispatches commands"| node_fileops
node_dispatch -->|"dispatches commands"| node_mutations

click node_interactive "https://github.com/myrl0/conf_mng/blob/main/src/main.py"
click node_basic "https://github.com/myrl0/conf_mng/blob/main/src/pr1.py"
click node_script2 "https://github.com/myrl0/conf_mng/blob/main/src/pr2.py"
click node_script3 "https://github.com/myrl0/conf_mng/blob/main/src/pr3.py"
click node_script4 "https://github.com/myrl0/conf_mng/blob/main/src/pr4.py"
click node_script5 "https://github.com/myrl0/conf_mng/blob/main/src/pr5.py"
click node_vfs "https://github.com/myrl0/conf_mng/blob/main/src/vfs.py"
click node_dispatch "https://github.com/myrl0/conf_mng/blob/main/src/vfs.py"
click node_navigation "https://github.com/myrl0/conf_mng/blob/main/src/vfs.py"
click node_fileops "https://github.com/myrl0/conf_mng/blob/main/src/vfs.py"
click node_mutations "https://github.com/myrl0/conf_mng/blob/main/src/vfs.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_interactive,node_basic,node_script2,node_script3,node_script4,node_script5,node_user toneBlue
class node_vfs,node_dispatch,node_navigation,node_fileops,node_mutations toneAmber
class node_scriptinput,node_jsoninput toneMint
```

## Components

### CLI stages

- [Interactive entry](https://github.com/myrl0/conf_mng/blob/main/src/main.py): `src/main.py`
- [Basic commands](https://github.com/myrl0/conf_mng/blob/main/src/pr1.py): `src/pr1.py`
- [Stage 2 runner](https://github.com/myrl0/conf_mng/blob/main/src/pr2.py): `src/pr2.py`
- [Stage 3 runner](https://github.com/myrl0/conf_mng/blob/main/src/pr3.py): `src/pr3.py`
- [Stage 4 runner](https://github.com/myrl0/conf_mng/blob/main/src/pr4.py): `src/pr4.py`
- [Stage 5 runner](https://github.com/myrl0/conf_mng/blob/main/src/pr5.py): `src/pr5.py`

### Virtual filesystem

- [VFS state](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py): `src/vfs.py`
- [Command dispatch](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py): `src/vfs.py`
- [Navigation commands](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py): `src/vfs.py`
- [File reading](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py): `src/vfs.py`
- [Directory mutations](https://github.com/myrl0/conf_mng/blob/main/src/vfs.py): `src/vfs.py`

### Runtime inputs

- **Startup script**
- **VFS JSON**

### Other components

- **User**

## Connections

- User → Interactive entry: enters commands (evidence: `src/main.py`)
- Interactive entry → Basic commands: calls command (evidence: `src/main.py`)
- User → Stage 2 runner: starts runner (evidence: `src/pr2.py`)
- User → Stage 3 runner: starts runner (evidence: `src/pr3.py`)
- User → Stage 4 runner: starts runner (evidence: `src/pr4.py`)
- User → Stage 5 runner: starts runner (evidence: `src/pr5.py`)
- Stage 2 runner → Startup script: reads script (evidence: `src/pr2.py`)
- Stage 2 runner → Basic commands: calls command (evidence: `src/pr2.py`)
- Stage 3 runner → Startup script: reads script (evidence: `src/pr3.py`)
- Stage 4 runner → Startup script: reads script (evidence: `src/pr4.py`)
- Stage 5 runner → Startup script: reads script (evidence: `src/pr5.py`)
- Stage 3 runner → VFS state: initializes VFS (evidence: `src/pr3.py`)
- Stage 4 runner → VFS state: initializes VFS (evidence: `src/pr4.py`)
- Stage 5 runner → VFS state: initializes VFS (evidence: `src/pr5.py`)
- Stage 3 runner → Command dispatch: executes commands (evidence: `src/pr3.py`)
- Stage 4 runner → Command dispatch: executes commands (evidence: `src/pr4.py`)
- Stage 5 runner → Command dispatch: executes commands (evidence: `src/pr5.py`)
- VFS state → VFS JSON: loads JSON (evidence: `src/vfs.py`)
- Command dispatch → Navigation commands: dispatches commands (evidence: `src/vfs.py`)
- Command dispatch → File reading: dispatches commands (evidence: `src/vfs.py`)
- Command dispatch → Directory mutations: dispatches commands (evidence: `src/vfs.py`)
