Open Snozzberries opened 7 months ago
If a module does not export any commands then New-MarkdownHelp throws $LocalizedData.ModuleNotFound.
New-MarkdownHelp
$LocalizedData.ModuleNotFound
A clearer error could be thrown.
Reference to platyPS.psm1 line 277. GetCommands will return a measurable object.
platyPS.psm1
GetCommands
$cmds = GetCommands ... if ($cmds.Count -eq 0) { throw "New error" } elseif (-not $cmds) { #line279 }
Summary of the new feature / enhancement
If a module does not export any commands then
New-MarkdownHelp
throws$LocalizedData.ModuleNotFound
.A clearer error could be thrown.
Proposed technical implementation details (optional)
Reference to
platyPS.psm1
line 277.GetCommands
will return a measurable object.