FRPSUGModule.psm1
#Generated at 03/26/2019 18:07:42 by Laurent LIENHARD #region <New-FRPSUGModule> function New-FRPSUGModule { <# .SYNOPSIS Creating a new module structure .DESCRIPTION This function allows, using a Plaster model, to generate a new module structure Information for the creation of the module (name, version ...) will be requested by the template Plaster This function requires having the Plaster module installed .PARAMETER DestinationPath The directory path in which the new module will be created .EXAMPLE PS C:\> New-FRPSUGModule -DestinationPath $env:TEMP This command will create a new module in the Temp directory of the user .LINK https://github.com/LaurentLienhard/FRPSUGModule/blob/master/Docs/EN-US/New-FRPSUGModule.md .NOTES General notes #> [CmdletBinding(SupportsShouldProcess)] param ( [ValidateScript( {Test-Path $_})] [String]$DestinationPath ) begin { $Current = $PSScriptRoot $TemplatePath = $Current + "\Ressources\FRPSUGModuleTemplate" Write-Verbose "The Template Path use is : $TemplatePath" } process { Invoke-Plaster -TemplatePath $TemplatePath -DestinationPath $DestinationPath } end { } } #endregion |