Closed art-bel closed 7 years ago
Hi! Thanks for this. I'm a little pressed for time, just at the moment, but I'll try to include this, along with some tests, on Friday and get it released shortly afterwards.
Okay, I've been looking into dynamic parameters in a bit more detail, and it turns out that documenting them reliably is rather difficult. In theory the IDynamicParameters.GetDynamicParameters()
method could return anything. The suggestion here would only work in the limited case where the cmdlet returns an instance of an inner class. I guess that's okay. XmlDoc2CmdletDoc is already a bit opinionated about how cmdlets are arranged in order for this tool to work, so I don't see this restriction as a particular problem.
Shipped in v 0.2.5.
Description topics for dynamic parameters are not generated. I added code inserting parameters from nested classes of the cmdlet if it implements IDynamicParameters interface. In my situation it's enough to generate a correct help file. You can use it or make additional dynamic parameters metadata to support cmdlets implementing dynamic parameters. `
`