You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NewTopic] Provide better usage descriptions in Cmdlet.ShouldProcess #5314
Normally, the API documentation is straightforward about the different overloads in a method, and whether they augment more minimalist overloads, or are used to cover different purposes
Both of those methods say This variant allows the caller to specify the complete text describing the operation, rather than just the name and action. I assume the 'caption' parameter is supposed to allow a more freeform text over the canned text when only providing the 'target' or both 'target' and 'action'. But why would I use 'caption' when it says may be displayed by some hosts, but not all, and the overloads with only 'action'/'target' parameters don't document such a limitation?
Additionally, as this document is related to PowerShell, I don't understand why 'ShouldProcessReason' would ever be needed. ShouldProcess would only be used if CmdletBinding() is called with SupportsShouldProcess=$True, which then exposes the -WhatIf parameter. What use case is there to then specify 'ShouldProcessReason'?
@joeyaiello@mairaw@dend I don't own this content, though we should have a discussion to figure out if I should. But there are three problems being discussed in this issue.
The content question about the SDK and how to use the ShouldProcess() method. This is not a PowerShell-Docs issue.
The breadcrumb and edit link problem.
Formatting problem
Someone from the product team needs to answer the SDK question. The other two would go to the repo/content owner.
@sdwheeler: I had the same question as #1. The document I'm citing is in the root URL https://docs.microsoft.com/en-us/dotnet, which is why I filed the issue here. It is not in the reciprocal powershell-docs (about_functions_advanced_methods, I believe), so I wasn't clear why this issue needed to be recategorized
Activity
mairaw commentedon Jun 4, 2018
I'm sorry we missed this feedback earlier @aydeisen. @dend who owns Powershell docs?
And why the Edit button goes to a private repo? And it's also missing breadcrumbs.
dend commentedon Jun 4, 2018
This would be for @joeyaiello and team.
mairaw commentedon Jun 4, 2018
Thanks @dend. Can you help with the breadcrumb?
@joeyaiello where can I move this issue to since this is not about .NET documentation?
joeyaiello commentedon Jun 4, 2018
@mairaw please move it over to https://github.com/PowerShell/PowerShell-Docs
/cc @sdwheeler you want these issues in PowerShell-Docs as opposed to pscore-docs-dotnet, right?
mairaw commentedon Jun 4, 2018
Thanks @joeyaiello. Moved issue to MicrosoftDocs/PowerShell-Docs#2499.
@dend there's also the issue with the garbled examples on that page. Not sure if this is a bug for your team to look at as well.
sdwheeler commentedon Jun 4, 2018
@joeyaiello @mairaw @dend I don't own this content, though we should have a discussion to figure out if I should. But there are three problems being discussed in this issue.
Someone from the product team needs to answer the SDK question. The other two would go to the repo/content owner.
aydeisen commentedon Jun 4, 2018
@sdwheeler: I had the same question as #1. The document I'm citing is in the root URL https://docs.microsoft.com/en-us/dotnet, which is why I filed the issue here. It is not in the reciprocal powershell-docs (about_functions_advanced_methods, I believe), so I wasn't clear why this issue needed to be recategorized
mairaw commentedon Jun 4, 2018
The root URL https://docs.microsoft.com/en-us/dotnet/api/ encompasses too many products. This repo is only about .NET itself (.NET Core, .NET Framework, etc.)
The content for the PowerShell ref docs is coming from https://github.com/MicrosoftDocs/powershell-docs-sdk-dotnet. That repo is private and I don't know who owns.