Stephanevg / PSClassUtils

A set of utilities to work with Powershell Classes
http://powershelldistrict.com/how-to-generate-a-uml-diagram-using-powershell/
93 stars 23 forks source link

Add 'include' parameter #80

Open Stephanevg opened 5 years ago

Stephanevg commented 5 years ago

It would be nice to have the possibility to select 'ONLY' the classes we would like to have in the export.

Filtering on the script file name doesn't help in all cases, as some files have more than one class in it.

Idea

Write-CUClassDiagram -Include "*Asset","Setting*" -Show

It should return classes (and enums) that have Either 'Asset' or 'Setting' in their name.

'Include' might be the wrong wording. The idea is to be able to 'select' the ones we want to output.

Perhaps a '-FilterScript' could be a path to dig?