Skip to content

Show a path example where the path is typed - #110

Merged
ALERTua merged 1 commit into
mainfrom
bugfix/109
Aug 27, 2026
Merged

Show a path example where the path is typed#110
ALERTua merged 1 commit into
mainfrom
bugfix/109

Conversation

@ALERTua

@ALERTua ALERTua commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Closes #109

The example of a .vhdx path was printed once, three lines above the box it goes into:

=== VIRTUAL HARD DISK LOCATION ===
Enter the full path of the .vhdx file to create, for example D:\DevDrive.vhdx
A per-user directory is recommended to avoid sharing the Dev Drive unintentionally.

Path of the .vhdx file:

By the time the cursor is blinking it has scrolled out of attention, though it is still on screen. Now:

Path of the .vhdx file (E.g. D:\DevDrive.vhdx):

Eleven other prompts in this script already carry what they will accept inside the prompt itself — Enter your choice (1 or 2), Enter $Subject in GB (min: $MinGB, $maxHint), Are you ready to proceed with Dev Drive creation? (yes/no), press Enter for "DevDrive". This brings the .vhdx path in line with them.

The line above keeps its own example deliberately.

Tests

Request-VhdxPath had no direct tests: only Resolve-VhdxPathInput, the rule that reads its answer, was covered. It now has two, and with them the first coverage of the question itself — that a path whose folder exists on a fixed drive is accepted and handed back, and that the prompt carries the example.

Three deliberate breakages were checked against them: dropping the parenthetical, changing it to a different example path, and returning the parent folder instead of the path. Each was caught.

Checks

Parse clean, Invoke-ScriptAnalyzer -Recurse reports nothing, 786 Pester tests pass (784 before).

The example of a .vhdx path was printed once, three lines above the box it goes
into, and had scrolled out of attention by the time the cursor was blinking.
Eleven other prompts in this script already carry what they accept inside the
prompt itself; this one now does too.

Request-VhdxPath gains its first direct tests along with it: it had none, and
only the rule that reads its answer was covered.

Closes #109

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ALERTua
ALERTua merged commit cee035f into main Aug 27, 2026
3 checks passed
@ALERTua
ALERTua deleted the bugfix/109 branch August 27, 2026 16:59
@kilo-code-bot

kilo-code-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • dev_drive.ps1 - 1 line changed (prompt text updated to include example path)
  • dev_drive.Tests.ps1 - 2 new tests added for Request-VhdxPath

Reviewed by free · Input: 90.6K · Output: 7.6K · Cached: 227.2K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The .vhdx path example sits three lines above the box the path is typed into

1 participant