Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Invoke-Process* cmdlets #10

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Added Invoke-Process* cmdlets #10

merged 1 commit into from
Nov 7, 2024

Conversation

jborean93
Copy link
Owner

Adds the Invoke-ProcessEx and Invoke-ProcessWith cmdlets which can be used to invoke a process and capture the output inside PowerShell. This is similar to invoking an executable normally in PowerShell but with the extra functionality exposed by the underlying CreateProcess* APIs in Windows.

Also adds -ArgumentEscaping which can be used to escape arguments in the MSI property format.

@jborean93 jborean93 force-pushed the invoke-process branch 2 times, most recently from 64bbd94 to 856498b Compare November 7, 2024 01:38
Adds the Invoke-ProcessEx and Invoke-ProcessWith cmdlets which can be
used to invoke a process and capture the output inside PowerShell. This
is similar to invoking an executable normally in PowerShell but with the
extra functionality exposed by the underlying CreateProcess* APIs in
Windows.

Also adds -ArgumentEscaping which can be used to escape arguments in the
MSI property format.
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 94.73054% with 44 lines in your changes missing coverage. Please review.

Project coverage is 88.18%. Comparing base (6b01405) to head (785f32e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ProcessEx/Commands/InvokeProcess.cs 94.70% 18 Missing and 13 partials ⚠️
src/ProcessEx/Native/Kernel32.cs 70.00% 4 Missing and 2 partials ⚠️
src/ProcessEx/Argument.cs 85.71% 1 Missing and 4 partials ⚠️
src/ProcessEx/Commands/ProcessEx.cs 97.91% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #10       +/-   ##
===========================================
+ Coverage   76.11%   88.18%   +12.06%     
===========================================
  Files          23       26        +3     
  Lines         850     1853     +1003     
  Branches      124      217       +93     
===========================================
+ Hits          647     1634      +987     
+ Misses        160      154        -6     
- Partials       43       65       +22     
Flag Coverage Δ
PS_5.1_x64_Windows 84.85% <94.66%> (+8.85%) ⬆️
PS_5.1_x86_Windows 87.67% <94.66%> (+12.38%) ⬆️
PS_7.2_x64_Windows 84.83% <94.72%> (+8.83%) ⬆️
PS_7.3_x64_Windows 84.83% <94.72%> (+8.83%) ⬆️
PS_7.4_x64_Windows 84.83% <94.72%> (+8.83%) ⬆️
PS_7.4_x86_Windows 87.67% <94.72%> (+12.37%) ⬆️

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.

@jborean93 jborean93 merged commit 13d6772 into main Nov 7, 2024
9 checks passed
@jborean93 jborean93 deleted the invoke-process branch November 7, 2024 03:14
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.

1 participant