Skip to content

Conversation

@santisq
Copy link
Owner

@santisq santisq commented Sep 16, 2025

Description

This pull request addresses two issues:

  1. Ctrl+C Cancellation: Added support for gracefully canceling operations using Ctrl+C when the cmdlets are traversing a hierarchy. Previously, the only way to stop the process was by restarting the session.
  2. Sort Order for Registry Keys: Similar to issue Sort by ascending values #9 but for the Get-PSTreeRegistry cmdlet. It now sorts Registry Keys in ascending order.

@santisq santisq self-assigned this Sep 16, 2025
@santisq santisq added the enhancement New feature or request label Sep 16, 2025
@santisq santisq linked an issue Sep 16, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.90%. Comparing base (2aa310c) to head (172c899).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/PSTree/Commands/GetPSTreeCommand.cs 87.50% 1 Missing ⚠️
src/PSTree/TreeCommandBase.cs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   96.00%   95.90%   -0.10%     
==========================================
  Files          25       25              
  Lines         876      880       +4     
  Branches      106      106              
==========================================
+ Hits          841      844       +3     
- Misses         26       27       +1     
  Partials        9        9              
Flag Coverage Δ
PS-5.1 95.34% <89.47%> (-0.11%) ⬇️
PS-7_Linux 71.98% <47.36%> (-0.14%) ⬇️
PS-7_Windows 95.86% <89.47%> (-0.11%) ⬇️

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 8644ff8 into main Sep 17, 2025
5 of 7 checks passed
@santisq santisq deleted the 52-add-cancellation-sort-by-ascending-registrykeys branch September 17, 2025 00:03
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.

Add Cancellation & Sort by Ascending RegistryKeys

2 participants