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
| Key | Main menu | Module menu |
|---|---|---|
↑ / ↓ | Move between modules | Move between actions |
k / j | Vim-style up/down | Vim-style up/down |
Home / End | First / last module | First / last action |
Enter | Open module | Run action |
1–5 | Jump to module | Jump to action |
/ | Open live search | Open live search |
D | Toggle dry-run | Toggle dry-run |
L | Toggle diagnostic logging | Toggle diagnostic logging |
B / Esc | Quit or go back | Go back |
Q | Quit | Quit |
Header pills
| Pill | Meaning |
|---|---|
PS 7.x | PowerShell major/minor version |
ADMIN | Current session is elevated |
STANDARD | Current session is not elevated |
DRY-RUN | Mutating actions preview only |
LOG | Diagnostic logging is active |
Live search
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.