Skip to content

Fix non-streaming output caused by WriteObject(..., enumerateCollection: true) - #68

Merged
santisq merged 4 commits into
mainfrom
67-enumerate-treebaserender-manually
May 11, 2026
Merged

Fix non-streaming output caused by WriteObject(..., enumerateCollection: true)#68
santisq merged 4 commits into
mainfrom
67-enumerate-treebaserender-manually

Conversation

@santisq

@santisq santisq commented May 11, 2026

Copy link
Copy Markdown
Owner

v3.0.1

Fixed

  • Fixed non-streaming output caused by WriteObject(..., enumerateCollection: true).
  • TreeBase.Render() now accepts PSCmdlet as a parameter and writes objects directly, enabling proper PowerShell streaming behavior.
  • Simplified RegistryMappings API (TryGetKeyGet) since only the five standard registry hives are supported.
  • Improved TryGetKey logic in GetPSTreeRegistryCommand for better readability and error handling.

Changed

  • Minor internal cleanups and code style improvements.

@santisq santisq self-assigned this May 11, 2026
@santisq santisq added the enhancement New feature or request label May 11, 2026
@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.23%. Comparing base (781587a) to head (2a181a7).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/PSTree/Commands/GetPSTreeRegistryCommand.cs 72.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
- Coverage   98.24%   98.23%   -0.02%     
==========================================
  Files          38       38              
  Lines         913      906       -7     
  Branches      118      117       -1     
==========================================
- Hits          897      890       -7     
- Misses          9       10       +1     
+ Partials        7        6       -1     
Flag Coverage Δ
PS-5.1 97.78% <78.57%> (-0.02%) ⬇️
PS-7_Linux 73.96% <14.28%> (+0.35%) ⬆️
PS-7_Windows 97.54% <78.57%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@santisq
santisq merged commit 218fda1 into main May 11, 2026
5 of 7 checks passed
@santisq
santisq deleted the 67-enumerate-treebaserender-manually branch May 11, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix non-streaming output caused by WriteObject(..., enumerateCollection: true)

1 participant