Open Stephanevg opened 6 years ago
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.
FolderPath
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,
This might have side effects on:
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 ?
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.side effects:
This might have side effects on: