-
Notifications
You must be signed in to change notification settings - Fork 944
Convert PowerShell Functions to C# CmdLets #3477
Copy link
Copy link
Open
0 / 60 of 6 issues completedLabels
2 - WorkingA user or team member has started working on the issue.A user or team member has started working on the issue.Breaking ChangeThe issue will introduce backwards incompatible changes.The issue will introduce backwards incompatible changes.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.Issues that introduce new functionality to the project, or enhances/updates existing functionality.
Milestone
Metadata
Metadata
Assignees
Labels
2 - WorkingA user or team member has started working on the issue.A user or team member has started working on the issue.Breaking ChangeThe issue will introduce backwards incompatible changes.The issue will introduce backwards incompatible changes.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.Issues that introduce new functionality to the project, or enhances/updates existing functionality.
Checklist
Is Your Feature Request Related To A Problem? Please describe.
Within the Chocolatey Licensed Extension, we extend the functionality that is provided by some of the Chocolatey PowerShell functions, for example for the Package Throttle feature, which means changing how the Get-WebFile function works.
Extending this functionality can be problematic as it deals with switching between PowerShell and C#, and there are no direct entry points to provide this additional functionality.
Describe The Solution. Why is it needed?
We should convert all the Chocolatey PowerShell Functions, i.e. the
Install-ChocolateyPath.ps1to be a C# CmdLets.This will allow for better inheritance/overloading of Chocolatey functionality within things like the Chocolatey Licensed Extension, as well as providing the necessary entry points to extend the functionality as/when required.
In addition, this will prevent duplication of code between Chocolatey CLI and CLE.
Additional Context
N/A
Related Issues
Install-ChocolateyPathadds a new entry to the PATH when part of it is already there #3318Tasks
Chocolatey.PowerShell.dll-help.xmlexternal help file in this repository after the docs PRs are merged