Repository navigation
Add Process.StartShellExecute extension - #64
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/9c3e303a-adac-48e0-ba62-b3132cc2b1a1 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Tyrrrz
reviewed
Apr 18, 2026
Tyrrrz
reviewed
Apr 18, 2026
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/1e600532-0dec-469a-8f43-b13f21d1ef35 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/2ca895cb-64e4-47d5-adeb-e85162081899 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Process.StartShellExecute(string fileName) extension to start a file/URL via the OS shell (UseShellExecute = true), plus a corresponding test in the PowerKit test suite.
Changes:
- Add
Process.StartShellExecute(string fileName)that wrapsProcess.Start(new ProcessStartInfo(fileName) { UseShellExecute = true }). - Add
StartShellExecute_Test(Windows-only) inProcessExtensionsTests.
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| PowerKit/Extensions/ProcessExtensions.cs | Adds the StartShellExecute helper on Process. |
| PowerKit.Tests/Extensions/ProcessExtensionsTests.cs | Adds a Windows-only test exercising StartShellExecute. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## prime #64 +/- ##
==========================================
- Coverage 94.89% 94.85% -0.05%
==========================================
Files 120 120
Lines 2332 2333 +1
Branches 177 177
==========================================
Hits 2213 2213
- Misses 85 86 +1
Partials 34 34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Tyrrrz
approved these changes
Apr 18, 2026
This was referenced May 1, 2026
This was referenced May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
StartShellExecutestatic extension onProcessthat opens a file or URL using the OS default handler (UseShellExecute = true).Changes
ProcessExtensions.cs— newStartShellExecute(string fileName)method wrappingProcess.Start(new ProcessStartInfo(fileName) { UseShellExecute = true })Usage