-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Missing Parameter Docs in V5 #2128
Comments
Thanks for the report. This is due to the use of dynamic parameters in both functions + lots of common parameters, but we might be able to do something.
Thoughts? Need to make sure it works all the way back to PSv3, so can't promise anything yet. |
How do you create your docs? Do you use platyPS? Does it pull straight from the PowerShell code or is the markdown the source of truth? If the markdown was the source of truth you could just update that file could you not? It clearly generated placeholder text. I was less concerned about the https://pester-docs.netlify.app/docs/commands/Should#parameters
|
We use platyPS with code as truth. It's done through a Docusaurus helper-module which always use I was mostly thinking about description examples. Synopsis for operators can be rephrased. However I wouldn't personally like to see 10 lines for description of AFAIK get-help doesn't work with dynamic parameters, so web only for parameters. |
Okay, well if you're always using Also |
Yeah that's the plan 👍
Don't remember all in my head, but can't ignore the possibility. The issue is still that since it uses the last attribute's helpmessage, it could also break in the future when new operators are added or code is reordered. Maybe I'm overthinking this. Currently no parameter help in operators so it all has to be written too. Was hoping to simplify that part by referencing the official assertion help-pages. 🙂 |
Oh right, I forgot the parameter sets are all in different attributes. I see what you're getting at now. That could be a pain to maintain... Could just save it off per parameter and add it to each set, then order doesn't matter... Obviously that would be bad if a certain set has a very specific usage, but you also only get one help message, so that's kind of irrelevant. |
Should be fixed after next update if docs when 5.4 is released. |
Location
Should
,Get-ShouldOperator
General summary of the issue
Placeholder text is still being used for parameter documentation.
The text was updated successfully, but these errors were encountered: