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

Interactive TUI

Launch the TUI with no arguments:

JunctionManager.bat

The interface uses a 256-color dark-terminal palette, a header with status pills, a module/action list, and a footer that shows context hints and the latest status message. Rendering degrades to plain text when output is redirected or NO_COLOR is set.

Screen layout

╭──────────────────────────────────────────────────────────────╮
│ ◆ Junction Manager › Main Menu (24 actions)     PS 7.4 · ADMIN │
╰──────────────────────────────────────────────────────────────╯

  ▸ [1] Scan & Inspect        6 actions │ Discover, inspect and classify junctions
    [2] Create & Manage       5 actions │ Create, retarget, repair and remove junctions
    [3] Clean & Repair        4 actions │ Remove stale links and reclaim empty targets
    [4] Backup & Export       5 actions │ Export inventory, back up and restore links
    [5] Settings & Safety     4 actions │ Protected paths, scan roots, logs and about

──────────────────────────────────────────────────────────────────
  ↑/↓ Move · Enter Open · 1-5 Jump · / Search · D Dry-Run · L Log · Q Quit

Keys

KeyMain menuModule menu
↑ / ↓Move between modulesMove between actions
k / jVim-style up/downVim-style up/down
Home / EndFirst / last moduleFirst / last action
EnterOpen moduleRun action
1–5Jump to moduleJump to action
/Open live searchOpen live search
DToggle dry-runToggle dry-run
LToggle diagnostic loggingToggle diagnostic logging
B / EscQuit or go backGo back
QQuitQuit

Header pills

PillMeaning
PS 7.xPowerShell major/minor version
ADMINCurrent session is elevated
STANDARDCurrent session is not elevated
DRY-RUNMutating actions preview only
LOGDiagnostic logging is active

Press / from either menu. Type to filter by action ID, label, module name or module ID. Use ↑/↓ to move, Enter to run the highlighted action, Backspace to edit, and Esc to return.

Search is the fastest way to reach a known action: clean, backup, protected, or an exact ID such as clean-stale-empty.

Dry-run mode

Press D to toggle dry-run. When enabled:

  • Create and retarget return a preview result.
  • Remove and cleanup report what would be detached.
  • Exports and backups report the destination without writing.
  • Empty-target deletion reports the target without removing it.

Dry-run is a per-session toggle in the TUI. On the CLI, pass --dry-run per command.

Logging

Press L to start or stop diagnostic logging. The footer toast shows the active log file name. Logging failures never interrupt a junction operation.

Mutating actions

Actions marked WRITE may change the filesystem. The TUI asks for confirmation unless dry-run is enabled. Cancelling leaves everything untouched.

sequenceDiagram
    participant U as User
    participant T as TUI
    participant C as Core
    U->>T: Select a WRITE action
    T->>U: Prompt for paths / options
    T->>U: Confirm mutation
    alt Cancelled
        T-->>U: No changes
    else Confirmed
        T->>C: Run operation
        C-->>T: Result object
        T-->>U: Status toast + result table
    end

Non-interactive fallback

If input or output is redirected, the TUI switches to line prompts instead of raw key reads. For automation, prefer the Command-line reference rather than driving the prompts.