Skip to content

Prevent wizard inventory from overwriting diagrams - #23

Merged
jacobyoby merged 3 commits into
mainfrom
fix/issue-9-output-path
Sep 8, 2026
Merged

jacobyoby merged 3 commits into
mainfrom
fix/issue-9-output-path

Conversation

@jacobyoby

Copy link
Copy Markdown
Owner

The quick-start wizard could write inventory JSON over the diagram whenever -OutputPath lacked a .drawio suffix. For example, -OutputPath ./office.xml produced the diagram and then replaced that same file with JSON.

This change derives a distinct *-inventory.json sibling path for .drawio, other extensions, and extensionless paths before either output is written. Pester coverage exercises all three forms and checks that the diagram and inventory paths cannot collide.

Validation: git diff --check passed. Pester could not run locally because PowerShell is not installed on this host; the repository's three-OS GitHub Actions workflow will provide runtime validation.

Closes #9

@jacobyoby

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

# Conflicts:
#	examples/New-NetworkDiagram.ps1

Co-authored-by: jacobyoby <45674026+jacobyoby@users.noreply.github.com>

Copilot AI commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved in f77bf1b.

@jacobyoby
jacobyoby merged commit c9f2dd1 into main Sep 8, 2026
4 checks passed
@jacobyoby
jacobyoby deleted the fix/issue-9-output-path branch September 8, 2026 18:29
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.

Wizard overwrites the diagram with the inventory JSON when -OutputPath does not end in .drawio

2 participants