Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Architecture

Portable Toolchain Manager combines a strict 4-layer acyclic PowerShell 7.x core with a modular pluggable toolchain catalog and a flicker-free TUI engine:

flowchart TD
    TUI["Entrypoint: PortableToolchainManager.bat -> src/menu.ps1<br/>Interactive TUI (windows-utilities-menu style) & Headless CLI"]
    CAT["Catalog & Lifecycle: catalog.ps1 · lifecycle.ps1 · resolvers.ps1 · config.ps1 · config-apply.ps1"]
    PACKS["Pluggable Packs: src/toolchains/01..06_*.ps1 + custom/*.ps1 · config/toolchains/*.ini · profiles/<id>/*.ini"]
    UTIL["Utilities: filesystem.ps1 (ZIP-Only + Zip Slip) · path.ps1 · registry.ps1 (Official HKCU Only)"]
    EVT["Events: logger.ps1 · progress.ps1"]

    TUI --> CAT
    CAT --> PACKS
    CAT --> UTIL
    CAT --> EVT
    UTIL --> EVT