XmlDoc2CmdletDoc | Create cmdlet XML help files from XML doc comments
kandi X-RAY | XmlDoc2CmdletDoc Summary
kandi X-RAY | XmlDoc2CmdletDoc Summary
The description for a cmdlet parameter is defined using elements in the XML doc comment for the parameter's field or property. Tag the elements with a type="description" attribute. For guidance on writing the parameter description, see
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of XmlDoc2CmdletDoc
XmlDoc2CmdletDoc Key Features
XmlDoc2CmdletDoc Examples and Code Snippets
///
///
/// First note title
///
/// This is the entire body text for the first note.
///
///
///
/// Second note title
///
/// The first paragraph of the body text for the second note.
/// The second
[Cmdlet("Test", "MyExample")]
public class TestMyExampleCommand : Cmdlet
{
[Parameter]
public MyType MyParameter {get; set;}
...
}
///
/// This is part of the type description.
/// This is also part of the type description.
///
pu
[Cmdlet("Test", "MyExample")]
public class TestMyExampleCommand : Cmdlet
{
///
/// This is part of the parameter description.
/// This is also part of the parameter description.
///
[Parameter]
public string MyParameter {get
Community Discussions
Trending Discussions on XmlDoc2CmdletDoc
QUESTION
I looked in the ms docs but couldn't find any suggestions on how to document a Cmdlet written in C# in a way that I can get the comments in PS via Get-Help
or other commands.
I found some blog posts that point to XmlDoc2CmdletDoc. I played a bit with it and it does the job but I find my code got a bit bulkier from the comments. Is this the way to go? I saw in the Az repository that they use some external markdown files. What would be the appropriate direction?
...ANSWER
Answered 2021-Jul-05 at 20:15(Compiled) cmdlets require external help files, which must be represented in a "noisy", complex XML-based markup format called MAML
- By contrast, comment-based help is only supported in written-in-PowerShell cmdlets (a.k.a. advanced functions / scripts).
The most convenient way to author such help files is via the PlatyPS
module, which allows authoring topics in Markdown format.
While compiled cmdlets can act as PowerShell modules by themselves, it is preferable to package them as directory-based modules, which is indeed required if you want to include MAML help files (*-Help.xml
).
Directory-based modules also allow you to include conceptual help topics, which, however, are mere plain-text files (about_*.txt
).
Note that directory-based modules composed of written-in-PowerShell cmdlets too can opt to ship their help via MAML help files (and provide conceptual help topics), but using comment-based help is more convenient.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XmlDoc2CmdletDoc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page