-
Notifications
You must be signed in to change notification settings - Fork 513
Cmdlet help snippet does not get generated inside of workflow blocks #1025
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
Comments
Hey Ricardo, have you tried typing out a comment block above or inside of a PowerShell function? We automatically generate the help comment for you. See this changelog note for more details: Are you looking for something different entirely? |
No, I didn't see that. Thank you very much @daviwil ! |
@daviwil, I noticed that this trick is not possible to use in functions inside PowerShell workflows. Example:
|
@ricardogaspar2 Looks like we missed this case. I'll update the bug title. Thanks! |
@daviwil Could you also add this for scripts as a whole? i.e where a script file starts with [CmdletBinding()] Param(...), typing "<#" above the CmdletBinding line would ideally trigger the same behaviour. Workaround is to wrap the entire contents of the file in a Function definition and then delete afterwards. |
That's a reasonable ask. Good idea! |
The original ask was implemented with #748 so you can type '##' anywhere to get the comment help block, and it works in workflow blocks. @TylerLeonhardt @SydneyhSmith perhaps this should be retagged to an enhancement to trigger also in certain comment circumstances as requested by @Cirzen in #1025 (comment), or is the ## syntax considered sufficient enough to close? |
Thanks will close the initial issue as fixed. For the second request, this is currently being tracked with issue #769 |
Just a request for improvement.
So far I didn't find a plugin or a way to auto-generate PowerShell scripts documentation. It would be great to have this automated.
Probably there is, but I was searching online and in this repo, and I didn't find anything.
The text was updated successfully, but these errors were encountered: