PSClassUtils
PSClassUtils copied to clipboard
Refactor: Write-CUClassDiagram
having parameter $Path and $FolderPath is cumbersome for the end user.
Perhaps it make sense to add a little bit of logic, and get rid of the FolderPath parameter.
Function Write-CUClassDiagram {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true,ParameterSetName='File')]
[ValidateScript({
test-Path $_
})]
[String]
$Path,
[Parameter(Mandatory=$true,ParameterSetName='Folder')]
[ValidateScript({
test-Path $_
})]
[String]
$FolderPath,
[Parameter(Mandatory=$False,ParameterSetName='Folder')]
[Switch]
$Recurse,
side effects:
This might have side effects on:
- Out-CUPsGraph
- Export-PsGraph
i'll try work on it ! path parameter may accept a file .\file.psm1, a fullname file c:\user\user1\class.psm1 or a folder
ok @LxLeChat It is all yours! :)
C'est fini ça non @LxLeChat ?