-
Notifications
You must be signed in to change notification settings - Fork 908
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
Amend contributing documentation with a guide on how we write C# Cmdlets for PowerShell #3539
Closed
2 tasks done
Tracked by
#3477
Labels
Milestone
Comments
2 tasks
vexx32
added a commit
to vexx32/choco
that referenced
this issue
Jan 15, 2025
Given we use some slightly custom bits in Chocolatey.PowerShell that will alter how contributors are expected to work with the cmdlets in this project compared to how more bare-bones projects handle C# cmdlets, this document outlines some of the more notable changes as well as the common design practices we will be using here.
10 tasks
vexx32
added a commit
to vexx32/choco
that referenced
this issue
Jan 16, 2025
Given we use some slightly custom bits in Chocolatey.PowerShell that will alter how contributors are expected to work with the cmdlets in this project compared to how more bare-bones projects handle C# cmdlets, this document outlines some of the more notable changes as well as the common design practices we will be using here.
@vexx32 when are we planning on shipping the work associated with this? Can we agree a milestone for this, and then get that assigned? |
corbob
pushed a commit
that referenced
this issue
Jan 23, 2025
Given we use some slightly custom bits in Chocolatey.PowerShell that will alter how contributors are expected to work with the cmdlets in this project compared to how more bare-bones projects handle C# cmdlets, this document outlines some of the more notable changes as well as the common design practices we will be using here.
corbob
added a commit
that referenced
this issue
Jan 23, 2025
(#3539) Add design documentation for C# cmdlets
vexx32
added a commit
that referenced
this issue
Jan 24, 2025
Given we use some slightly custom bits in Chocolatey.PowerShell that will alter how contributors are expected to work with the cmdlets in this project compared to how more bare-bones projects handle C# cmdlets, this document outlines some of the more notable changes as well as the common design practices we will be using here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Is Your Feature Request Related To A Problem? Please describe.
No response
Describe The Solution. Why is it needed?
We need to amend the contribution documentation in this repository to include some information about how we tend to author C# cmdlets, classes and design patterns to make use of and those to avoid as well.
Specifically, we should include the following information:
ChocolateyCmdlet
and notCmdlet
orPSCmdlet
SupportsShouldProcess
aka-WhatIf
/-Confirm
PSHelper
orChocolateyCmdlet
and so forthThrowTerminatingError()
orWriteError()
in the cmdlet layer itselfChocolateyCmdlet
) as PowerShell does not support this.Additional Context
No response
Related Issues
The text was updated successfully, but these errors were encountered: